Blank line found at start of control structure, when there isn’t a blank line there

Groovecoder seems to think that I rant because I do insane things and expect sane packages to continue playing nice with me. It’s not true.

What causes my rants (most frequently) are when the packages lie about what is going wrong.


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)
——————————————————————————–

 
//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
}

You will observe that there are no blank lines in the code, neither at the start of the control structures nor anywhere else. The actual problem is that WP standard doesn’t like the way I comment the ends of my if/else blocks. Still looking for a syntax that works that I can live with… (when my blocks are folded up I still want to see those comments.