Skip to content

Instantly share code, notes, and snippets.

@mwic
Created March 26, 2013 19:17
Show Gist options
  • Save mwic/5248309 to your computer and use it in GitHub Desktop.
Save mwic/5248309 to your computer and use it in GitHub Desktop.
<?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