Fork me on GitHub
a Sensio Labs Product

Remote Void (v2.18.0) edition

Rule pre_increment

Warning

This rule is deprecated and will be removed on next major version.

You should use increment_style instead.

Pre incrementation/decrementation should be used if possible.

Examples

Example #1

--- Original
+++ New
@@ -1,3 +1,3 @@
 <?php
-$a++;
-$b--;
+++$a;
+--$b;
The logo is © 2010-2014 Sensio Labs