File "ConcatenationSpacingUnitTest.inc.fixed"

Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed
File size: 936 bytes
MIME-type: text/x-php
Charset: utf-8

<?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';