PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
Files
<?php // This line is okay... just! if (($reallyLongVarName === true) || (is_array($anotherLongVarName) == false)) { // Do something. } // This line is not okay... just! if (($reallyLongVarName === true) || (is_array($anotherLongVarName) === false)) { // Do something. } // This line is is too long. if (($anotherReallyLongVarName === true) || (is_array($anotherReallyLongVarName) === false)) { // Do something. } // This is a really really long comment that is going to go to exactly 80 chars. // This is another really really long comment that is going to go well over 80 characters. // And here is just a bunch of spaces that exceeds the line length. // And here are some spaces exactly 80 chars long. // This is a really really really really long long comment that is going to go to exactly 100 chars. // This is another really really really really really long comment that is going to go well over 100 characters. // And here is just a bunch of spaces that exceeds the max line length. // And here are some spaces exactly 100 chars long. ?> <b>Hello</b>b> <?php echo 'hi'; ?> <?php // This is another really long comment that is going to go well over 100 characters, with no closing php tag after it. /** * Does something cool, blah blah, not so long line. * * We're using Wilson scoring because blah blah, see: * http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval */ // Go here: // http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval # http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval if ($foo) { if ($bar) { if ($baz) { // Next line can be broken: // foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblah // But this one is just too long to break with this indent: // foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblahblah } } } /* -------------------------------- 80 chars -------------------------------- */ $ab = function () { /* comment */ if ($foo === true) { return (int) $foo; } }; $ab = function () { /* comment */ if ($foo === true){ return (int)$foo; }}; $ab = function () { /* comment */ if ($foo === true) { return (int) $foo; } }; $ab = function () { /* comment */ if ($foo === true) { return(int) $foo; }}; $ab = function () { /* comment */ if ($foo === true) { return(int) $foo; }}; $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab; // PHPCS annotations on a line by themselves should be ignored for the metrics. // phpcs:enable Standard.Category.Sniff.ErrorCode1,Standard.Category.Sniff.ErrorCode2 -- for reasons ... // ... but not when combined with statements. $a = $b; // phpcs:ignore Standard.Category.Sniff.ErrorCode1,Standard.Category.Sniff.ErrorCode2 -- for reasons ... if (($anotherReallyLongVarName === true) {} // This comment makes the line too long.
[-] InlineHTMLUnitTest.5.inc
[edit]
[-] OneTraitPerFileUnitTest.php
[edit]
[-] EndFileNewlineUnitTest.1.inc
[edit]
[-] LineEndingsUnitTest.js.fixed
[edit]
[-] LineEndingsUnitTest.php
[edit]
[-] OneInterfacePerFileUnitTest.php
[edit]
[-] EndFileNewlineUnitTest.7.inc.fixed
[edit]
[-] ExecutableFileUnitTest.4.inc
[edit]
[-] EndFileNoNewlineUnitTest.php
[edit]
[-] EndFileNewlineUnitTest.3.js
[edit]
[-] EndFileNoNewlineUnitTest.2.js
[edit]
[-] EndFileNewlineUnitTest.4.inc
[edit]
[-] EndFileNoNewlineUnitTest.9.inc.fixed
[edit]
[-] LowercasedFilenameUnitTest.1.inc
[edit]
[-] EndFileNewlineUnitTest.7.inc
[edit]
[-] ExecutableFileUnitTest.1.inc
[edit]
[+]
..
[-] EndFileNewlineUnitTest.3.css.fixed
[edit]
[-] EndFileNoNewlineUnitTest.5.inc
[edit]
[-] OneClassPerFileUnitTest.inc
[edit]
[-] LineEndingsUnitTest.1.inc.fixed
[edit]
[-] ByteOrderMarkUnitTest.5.inc
[edit]
[-] LowercasedFilenameUnitTest.php
[edit]
[-] LineEndingsUnitTest.2.inc
[edit]
[-] EndFileNoNewlineUnitTest.1.js.fixed
[edit]
[-] EndFileNewlineUnitTest.2.css
[edit]
[-] EndFileNoNewlineUnitTest.2.inc.fixed
[edit]
[-] EndFileNoNewlineUnitTest.2.js.fixed
[edit]
[-] ExecutableFileUnitTest.2.inc
[edit]
[-] InlineHTMLUnitTest.3.inc
[edit]
[-] EndFileNewlineUnitTest.1.js
[edit]
[-] EndFileNewlineUnitTest.3.css
[edit]
[-] ExecutableFileUnitTest.3.inc
[edit]
[-] LowercasedFilenameUnitTest.2.inc
[edit]
[-] InlineHTMLUnitTest.4.inc
[edit]
[-] ByteOrderMarkUnitTest.2.inc
[edit]
[-] InlineHTMLUnitTest.php
[edit]
[-] LineLengthUnitTest.php
[edit]
[-] EndFileNoNewlineUnitTest.7.inc
[edit]
[-] EndFileNoNewlineUnitTest.8.inc.fixed
[edit]
[-] ByteOrderMarkUnitTest.1.inc
[edit]
[-] ByteOrderMarkUnitTest.4.inc
[edit]
[-] EndFileNewlineUnitTest.2.inc
[edit]
[-] OneClassPerFileUnitTest.php
[edit]
[-] EndFileNoNewlineUnitTest.2.inc
[edit]
[-] LineEndingsUnitTest.js
[edit]
[-] InlineHTMLUnitTest.2.inc
[edit]
[-] lowercased_filename_unit_test.inc
[edit]
[-] EndFileNoNewlineUnitTest.9.inc
[edit]
[-] LineLengthUnitTest.2.inc
[edit]
[-] EndFileNoNewlineUnitTest.1.inc.fixed
[edit]
[-] OneTraitPerFileUnitTest.inc
[edit]
[-] ExecutableFileUnitTest.php
[edit]
[-] EndFileNewlineUnitTest.6.inc.fixed
[edit]
[-] EndFileNoNewlineUnitTest.1.inc
[edit]
[-] EndFileNoNewlineUnitTest.1.js
[edit]
[-] LineEndingsUnitTest.2.inc.fixed
[edit]
[-] EndFileNoNewlineUnitTest.8.inc
[edit]
[-] EndFileNoNewlineUnitTest.6.inc.fixed
[edit]
[-] OneObjectStructurePerFileUnitTest.php
[edit]
[-] EndFileNoNewlineUnitTest.1.css.fixed
[edit]
[-] EndFileNoNewlineUnitTest.2.css.fixed
[edit]
[-] EndFileNewlineUnitTest.8.inc
[edit]
[-] OneObjectStructurePerFileUnitTest.inc
[edit]
[-] EndFileNoNewlineUnitTest.2.css
[edit]
[-] EndFileNoNewlineUnitTest.3.inc
[edit]
[-] LineEndingsUnitTest.1.inc
[edit]
[-] LineEndingsUnitTest.css
[edit]
[-] EndFileNewlineUnitTest.php
[edit]
[-] InlineHTMLUnitTest.6.inc
[edit]
[-] ByteOrderMarkUnitTest.php
[edit]
[-] EndFileNewlineUnitTest.2.js
[edit]
[-] EndFileNewlineUnitTest.3.inc.fixed
[edit]
[-] EndFileNewlineUnitTest.3.inc
[edit]
[-] EndFileNoNewlineUnitTest.4.inc
[edit]
[-] EndFileNewlineUnitTest.5.inc
[edit]
[-] InlineHTMLUnitTest.1.inc
[edit]
[-] EndFileNoNewlineUnitTest.3.js
[edit]
[-] EndFileNewlineUnitTest.1.css
[edit]
[-] EndFileNewlineUnitTest.4.inc.fixed
[edit]
[-] EndFileNoNewlineUnitTest.6.inc
[edit]
[-] EndFileNewlineUnitTest.3.js.fixed
[edit]
[-] EndFileNoNewlineUnitTest.1.css
[edit]
[-] ByteOrderMarkUnitTest.3.inc
[edit]
[-] EndFileNoNewlineUnitTest.3.css
[edit]
[-] LineLengthUnitTest.1.inc
[edit]
[-] LineEndingsUnitTest.css.fixed
[edit]
[-] InlineHTMLUnitTest.7.inc
[edit]
[-] LineLengthUnitTest.3.inc
[edit]
[-] OneInterfacePerFileUnitTest.inc
[edit]
[-] EndFileNoNewlineUnitTest.10.inc
[edit]
[-] LineLengthUnitTest.4.inc
[edit]
[-] EndFileNewlineUnitTest.6.inc
[edit]