
standardize_increment
¶Increment and decrement operators should be used if possible.
--- Original
+++ New
<?php
-$i += 1;
+++$i;
--- Original
+++ New
<?php
-$i -= 1;
+--$i;
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the standardize_increment
rule.
Using the @Symfony rule set will enable the standardize_increment
rule.