combine_consecutive_unsets.rst 440 B

123456789101112131415161718192021222324252627
  1. ===================================
  2. Rule ``combine_consecutive_unsets``
  3. ===================================
  4. Calling ``unset`` on multiple items should be done in one call.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. -unset($a); unset($b);
  14. +unset($a, $b);
  15. Rule sets
  16. ---------
  17. The rule is part of the following rule set:
  18. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_