pre_increment.rst 422 B

1234567891011121314151617181920212223242526
  1. ======================
  2. Rule ``pre_increment``
  3. ======================
  4. .. warning:: This rule is deprecated and will be removed on next major version.
  5. You should use ``increment_style`` instead.
  6. Pre incrementation/decrementation should be used if possible.
  7. Examples
  8. --------
  9. Example #1
  10. ~~~~~~~~~~
  11. .. code-block:: diff
  12. --- Original
  13. +++ New
  14. @@ -1,3 +1,3 @@
  15. <?php
  16. -$a++;
  17. -$b--;
  18. +++$a;
  19. +--$b;