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