PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc
Role: Example script
Content type: text/plain
Description: Example script
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 955 bytes
 

Contents

Class file image Download
<?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';