PHP Classes

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

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 936 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';