PHP 8.2.31
Preview: ConcatenationSpacingUnitTest.inc.fixed Size: 936 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed

<?php
$string = 'Hello'.$there.'. How are'.$you.$going."today $okay";
$string = 'Hello'.$there.'. How are'.$you.$going."today $okay";
$string = 'Hello'.$there;
$string = 'Hello'.$there;
$string = 'Hello'.$there;

$y = '1'.'2'.'3';

echo (1).'test';
echo (1.1).'test';
echo 'test'.(1);
echo 'test'.(1.1);
echo 'test'.(1).'test'.(2.2).'test'.(3);

get_current_screen()->add_help_tab( array(
'id'        => <<<EOD
Here comes some text.
EOD
.'</hr>',
) );

// phpcs:set Squiz.Strings.ConcatenationSpacing spacing 1

$string = 'Hello' . $there . '. How are' . $you . $going . "today $okay";
$string = 'Hello' . $there . '. How are' . $you . $going . "today $okay";
$string = 'Hello' . $there;
$string = 'Hello' . $there;
$string = 'Hello' . $there;

// phpcs:set Squiz.Strings.ConcatenationSpacing ignoreNewlines true
$y = '1'
   . '2'
   . '3';

$y = '1' .
     '2' .
     '3';

$y = '1'
. '2'
. '3';

$y = '1'
   . '2' .
    '3'
   . '4';

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
955 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
936 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.68 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
699 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
697 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.58 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
300 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
291 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.43 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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