PHP 8.2.31
Preview: UnnecessaryStringConcatUnitTest.js Size: 415 B
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js

var x = 'My ' + 'string';
var x = 'My ' + 1234;
var x = 'My ' + y + ' test';

this.errors['test'] = x;
this.errors['test' + 10] = x;
this.errors['test' + y] = x;
this.errors['test' + 'blah'] = x;
this.errors[y] = x;
this.errors[y + z] = x;
this.errors[y + z + 'My' + 'String'] = x;

var long = 'This is a really long string. '
         + 'It is being used for errors. '
         + 'The message is not translated.';

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
1.74 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.74 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.98 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.98 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
155 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.88 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
992 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
195 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
415 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.19 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).