PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
Formatting
<?php if (! $someVar || ! $x instanceOf stdClass) {} if (! $someVar || ! $x instanceOf stdClass) {} if (! $someVar || ! $x instanceOf stdClass) {} if (! foo() && (! $x || true)) {} $var = ! ($x || $y); $var = ! ($x || $y); $var = ! /*comment*/ ($x || $y); $baz = function () { return ! $bar; }; if ( ! ($x || $y) ) { return ! $bar; } if ( ! // phpcs:ignore Standard.Cat.SniffName -- for reasons. ($x || $y) ) {} // phpcs:set Generic.Formatting.SpaceAfterNot ignoreNewlines true if ( ! ($x || $y) ) { return ! $bar; } if ( ! // phpcs:ignore Standard.Cat.SniffName -- for reasons. ($x || $y) ) {} // phpcs:set Generic.Formatting.SpaceAfterNot ignoreNewlines false // phpcs:set Generic.Formatting.SpaceAfterNot spacing 2 if (! $someVar || ! $x instanceOf stdClass) {} if (! $someVar || ! $x instanceOf stdClass) {} if (! $someVar || ! $x instanceOf stdClass) {} if (! foo() && (! $x || true)) {} $var = ! ($x || $y); $var = ! ($x || $y); $baz = function () { return ! $bar; }; if ( ! ($x || $y) ) { return ! $bar; } // phpcs:set Generic.Formatting.SpaceAfterNot spacing 0 if (!$someVar || !$x instanceOf stdClass) {} if (!$someVar || !$x instanceOf stdClass) {} if (!foo() && (!$x || true)) {} $var = !($x || $y); $var = ! /*comment*/ ($x || $y); $baz = function () { return !$bar; }; if ( !($x || $y) ) { return !$bar; } if ( ! // phpcs:ignore Standard.Cat.SniffName -- for reasons. ($x || $y) ) {} // phpcs:set Generic.Formatting.SpaceAfterNot ignoreNewlines true if ( ! ($x || $y) ) { return !$bar; } if ( ! // phpcs:ignore Standard.Cat.SniffName -- for reasons. ($x || $y) ) {} // phpcs:set Generic.Formatting.SpaceAfterNot ignoreNewlines false // phpcs:set Generic.Formatting.SpaceAfterNot spacing 1
[-] NoSpaceAfterCastUnitTest.inc.fixed
[edit]
[-] DisallowMultipleStatementsUnitTest.inc.fixed
[edit]
[-] SpaceAfterNotUnitTest.js
[edit]
[-] SpaceBeforeCastUnitTest.inc.fixed
[edit]
[-] MultipleStatementAlignmentUnitTest.inc
[edit]
[-] MultipleStatementAlignmentUnitTest.js
[edit]
[-] NoSpaceAfterCastUnitTest.inc
[edit]
[+]
..
[-] SpaceAfterCastUnitTest.1.inc.fixed
[edit]
[-] SpaceAfterNotUnitTest.js.fixed
[edit]
[-] SpaceAfterCastUnitTest.1.inc
[edit]
[-] SpaceAfterCastUnitTest.2.inc
[edit]
[-] SpaceBeforeCastUnitTest.inc
[edit]
[-] MultipleStatementAlignmentUnitTest.inc.fixed
[edit]
[-] SpaceAfterNotUnitTest.1.inc.fixed
[edit]
[-] NoSpaceAfterCastUnitTest.php
[edit]
[-] DisallowMultipleStatementsUnitTest.inc
[edit]
[-] SpaceAfterNotUnitTest.2.inc
[edit]
[-] SpaceAfterCastUnitTest.php
[edit]
[-] MultipleStatementAlignmentUnitTest.php
[edit]
[-] DisallowMultipleStatementsUnitTest.php
[edit]
[-] SpaceBeforeCastUnitTest.php
[edit]
[-] MultipleStatementAlignmentUnitTest.js.fixed
[edit]
[-] SpaceAfterNotUnitTest.php
[edit]
[-] SpaceAfterNotUnitTest.1.inc
[edit]