no_empty_statement.rst 517 B

123456789101112131415161718192021222324252627282930
  1. ===========================
  2. Rule ``no_empty_statement``
  3. ===========================
  4. Remove useless semicolon statements.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. @@ -1 +1 @@
  13. -<?php $a = 1;;
  14. +<?php $a = 1;
  15. Rule sets
  16. ---------
  17. The rule is part of the following rule sets:
  18. @Symfony
  19. Using the ``@Symfony`` rule set will enable the ``no_empty_statement`` rule.
  20. @PhpCsFixer
  21. Using the ``@PhpCsFixer`` rule set will enable the ``no_empty_statement`` rule.