Consistence Coding Standard Versions Save

Consistence - Coding Standard - PHP Code Sniffer rules

3.10.1

4 years ago

Fixes

  • Disable errors with false positives in Squiz.Arrays.ArrayDeclaration (#64)
  • Fix Slevomat Coding Standard dependency to support minor versions (#63, thanks to @krns)

3.10

4 years ago

Maintenance

3.9

4 years ago

Improvements

  • Check spacing before assignments (#58)

Maintenance

3.8

5 years ago

3.7

5 years ago

Fixes

  • Exclude function spacing that has separate code for last line (#53)

Maintenance

3.6

5 years ago
  • Support for PHP 7.3 (#51)

3.5

5 years ago
  • Additional sniffs for checking current standard (#50)
    • check that @var is not used for constants
    • check that PHPDoc containing only {@inheritDoc} is not used

3.4

5 years ago
  • Check PHPDoc and typehints declaration (#45)
    • check for missing property types in PHPDoc @var
    • check for missing typehints in case they can be declared
    • check for missing @return and/or native return typehint in case the method body contains return with a value
    • check for useless doc comments
    • forces to specify what's in traversable types like array, iterable and \Traversable

3.3.1

5 years ago
  • Exclude errors reporting false positives for multi line nested array access (#44)

3.3

5 years ago
  • Additional sniffs for checking current standard (#43)
    • check more language construct spacing cases
    • check that PHP types used for type hints, return types, and type casting are lowercase
    • check whitespace inside parenthesis that do not belong to a function call/declaration or control structure