no_space_around_double_colon.rst 759 B

1234567891011121314151617181920212223242526272829303132333435
  1. =====================================
  2. Rule ``no_space_around_double_colon``
  3. =====================================
  4. There must be no space around double colons (also called Scope Resolution
  5. Operator or Paamayim Nekudotayim).
  6. Examples
  7. --------
  8. Example #1
  9. ~~~~~~~~~~
  10. .. code-block:: diff
  11. --- Original
  12. +++ New
  13. <?php
  14. -echo Foo\Bar :: class;
  15. +echo Foo\Bar::class;
  16. Rule sets
  17. ---------
  18. The rule is part of the following rule sets:
  19. - `@PER <./../../ruleSets/PER.rst>`_
  20. - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_
  21. - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_
  22. - `@PSR2 <./../../ruleSets/PSR2.rst>`_
  23. - `@PSR12 <./../../ruleSets/PSR12.rst>`_
  24. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  25. - `@Symfony <./../../ruleSets/Symfony.rst>`_