opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
Formatting
➕ New
📤 Upload
✎ Editing:
SpaceAfterNotUnitTest.1.inc
← Back
<?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
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel