Created
March 26, 2013 19:17
-
-
Save mwic/5248309 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//snip.php | |
if ( $VCP > $minVCP ) { | |
//we have at least the minimum, .. do a few more checks... | |
if ( $everythingElseIsOk ) { | |
echo 'Everything is ok'; | |
} | |
} else { //end if we are at least at the minimum | |
$minimum = false; | |
if ( !$rsyncUpdated ) { //It could be because Irina has not updated the rsync yet. | |
echo "Dammit I've told you this a million times!"; | |
}//end if it's Irina's fault | |
} | |
?> | |
phpcs --warning-severity=10 --standard=WordPress -s snip.php | |
FILE: /home/mcrouch/workspace/stBetaAll/snip.php | |
——————————————————————————– | |
FOUND 2 ERROR(S) AFFECTING 2 LINE(S) | |
——————————————————————————– | |
8 | ERROR | Blank line found at start of control structure | |
| | (WordPress.WhiteSpace.ControlStructureSpacing) | |
10 | ERROR | Blank line found at start of control structure | |
| | (WordPress.WhiteSpace.ControlStructureSpacing) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment