Normalize ++x to x++. (#5660)

There are only 10 instances of ++x in our codebase, compared with over 500 instances of x++.  The stlye guide has no opinion on which to use, nor do I.  But the lack of consistency was making regex searches for bugs more difficult.
This commit is contained in:
Neil Fraser
2021-11-02 09:22:11 -07:00
committed by GitHub
parent 7ff6b93eb5
commit fa47c3c4a8
10 changed files with 10 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ Blockly.PHP['controls_if'] = function(block) {
}
code += (n > 0 ? ' else ' : '') +
'if (' + conditionCode + ') {\n' + branchCode + '}';
++n;
n++;
} while (block.getInput('IF' + n));
if (block.getInput('ELSE') || Blockly.PHP.STATEMENT_SUFFIX) {