PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
WhiteSpace
<?php echo $blah; echo $blah; echo($blah); echo $blah; print $blah; print $blah; print($blah); print $blah; include $blah; include $blah; include($blah); include $blah; include_once $blah; include_once $blah; include_once($blah); include_once $blah; require $blah; require $blah; require($blah); require $blah; require_once $blah; require_once $blah; require_once($blah); require_once $blah; $obj = new MyClass(); $obj = new MyClass(); $obj = new $className(); $obj = new $className(); yield $blah; yield $blah; yield $blah; yield from $test(); yield FROM $test(); YIELD from $test(); yield from $test(); yield from $test(); yield From $test(); yield FROM $test(); throw new Exception(); throw new Exception(); throw new Exception(); throw new Exception(); throw $exception; throw $exception; namespace MyClass; namespace MyClass; namespace MyNamespace\MyClass; namespace MyNamespace\MyClass; // Namespace operator, not language construct. namespace\MyNamespace\MyClass; namespace \MyNamespace\MyClass; namespace /*comment*/ \MyNamespace\MyClass; use MyClass; use MyClass; use MyNamespace\MyClass; use MyNamespace\MyClass; use \MyNamespace\MyClass; use \MyNamespace\MyClass; return; return $blah; return $blah; return($blah); return $blah; return $tab; return $newLine; // The following line must have a single space at the end (after return) return $spaceAndNewLine; // Related to issue #529. These should not be auto-fixed as we don't know what to do with the comment. yield /*comment*/ from $test(); yield # comment from $test(); yield // phpcs:ignore Stnd.Category.SniffName from $test(); // Closure use should be ignored. These are subject to their own rules. $cl = function() use ($b) {}; $cl = function() use($b) {}; goto MyName; goto MyName;
[-] HereNowdocIdentifierSpacingUnitTest.inc.fixed
[edit]
[-] DisallowSpaceIndentUnitTest.js
[edit]
[-] SpreadOperatorSpacingAfterUnitTest.1.inc.fixed
[edit]
[-] IncrementDecrementSpacingUnitTest.js.fixed
[edit]
[-] DisallowTabIndentUnitTest.2.inc
[edit]
[-] LanguageConstructSpacingUnitTest.php
[edit]
[-] SpreadOperatorSpacingAfterUnitTest.2.inc
[edit]
[+]
..
[-] HereNowdocIdentifierSpacingUnitTest.inc
[edit]
[-] ScopeIndentUnitTest.2.inc
[edit]
[-] DisallowSpaceIndentUnitTest.css.fixed
[edit]
[-] DisallowTabIndentUnitTest.css.fixed
[edit]
[-] ScopeIndentUnitTest.1.js.fixed
[edit]
[-] ArbitraryParenthesesSpacingUnitTest.1.inc
[edit]
[-] DisallowSpaceIndentUnitTest.1.inc
[edit]
[-] DisallowSpaceIndentUnitTest.2.inc.fixed
[edit]
[-] DisallowTabIndentUnitTest.js.fixed
[edit]
[-] HereNowdocIdentifierSpacingUnitTest.php
[edit]
[-] IncrementDecrementSpacingUnitTest.js
[edit]
[-] DisallowTabIndentUnitTest.2.inc.fixed
[edit]
[-] ArbitraryParenthesesSpacingUnitTest.2.inc
[edit]
[-] DisallowTabIndentUnitTest.1.inc.fixed
[edit]
[-] SpreadOperatorSpacingAfterUnitTest.php
[edit]
[-] SpreadOperatorSpacingAfterUnitTest.1.inc
[edit]
[-] LanguageConstructSpacingUnitTest.2.inc
[edit]
[-] DisallowSpaceIndentUnitTest.js.fixed
[edit]
[-] ArbitraryParenthesesSpacingUnitTest.1.inc.fixed
[edit]
[-] DisallowTabIndentUnitTest.js
[edit]
[-] DisallowTabIndentUnitTest.css
[edit]
[-] DisallowSpaceIndentUnitTest.3.inc.fixed
[edit]
[-] ScopeIndentUnitTest.3.inc.fixed
[edit]
[-] LanguageConstructSpacingUnitTest.1.inc
[edit]
[-] DisallowTabIndentUnitTest.1.inc
[edit]
[-] ScopeIndentUnitTest.3.inc
[edit]
[-] IncrementDecrementSpacingUnitTest.inc.fixed
[edit]
[-] IncrementDecrementSpacingUnitTest.inc
[edit]
[-] ScopeIndentUnitTest.1.inc
[edit]
[-] DisallowTabIndentUnitTest.php
[edit]
[-] DisallowSpaceIndentUnitTest.1.inc.fixed
[edit]
[-] DisallowSpaceIndentUnitTest.2.inc
[edit]
[-] DisallowTabIndentUnitTest.3.inc
[edit]
[-] LanguageConstructSpacingUnitTest.1.inc.fixed
[edit]
[-] ScopeIndentUnitTest.php
[edit]
[-] IncrementDecrementSpacingUnitTest.php
[edit]
[-] DisallowSpaceIndentUnitTest.3.inc
[edit]
[-] ScopeIndentUnitTest.2.inc.fixed
[edit]
[-] DisallowSpaceIndentUnitTest.4.inc
[edit]
[-] ScopeIndentUnitTest.4.inc
[edit]
[-] ScopeIndentUnitTest.1.inc.fixed
[edit]
[-] ScopeIndentUnitTest.1.js
[edit]
[-] DisallowSpaceIndentUnitTest.css
[edit]
[-] DisallowSpaceIndentUnitTest.php
[edit]
[-] ArbitraryParenthesesSpacingUnitTest.php
[edit]