Skip to content

Releases: consistence/coding-standard

3.2

12 Jun 14:47
3.2
0658a26
Compare
Choose a tag to compare

3.1

28 May 14:39
3.1
5019181
Compare
Choose a tag to compare
3.1
  • Additional sniffs for checking current standard (#41)
    • check more namespace declaration rules
    • check not using empty()
    • check using short PHP lists

3.0.1

23 Mar 17:29
3.0.1
7cdee53
Compare
Choose a tag to compare
  • Remove Squiz.WhiteSpace.ControlStructureSpacing since there should be no error codes left for checking (#38)

3.0

23 Mar 16:28
3.0
dd4a3b6
Compare
Choose a tag to compare
3.0

New features

  • Additional sniffs for checking current standard (#34)
    • check that there are parentheses when calling constructor even when no parameters are given
    • check that single line content PHPDocs are actually written in single line
    • check that language expressions are not written with parentheses if possible
    • check that there are no empty comments

Rule changes

  • Use float instead of double or real (#35)
  • Forbid (binary) and (unset) typecasts (#36)
  • Disallow empty() since it is magic (#37)

Maintenance

2.4

22 Mar 14:28
2.4
3e0f2d3
Compare
Choose a tag to compare
2.4
  • support for PHP 7.2 (#32)

2.3.1

08 Mar 15:43
2.3.1
1bd9615
Compare
Choose a tag to compare
  • fix PHPCS BC break: DetectedCATCH -> DetectedCatch (#31)

2.3

15 Dec 14:11
2.3
e273382
Compare
Choose a tag to compare
2.3

2.2.1

22 Sep 08:35
2.2.1
9f16e11
Compare
Choose a tag to compare
  • Custom Exception last argument is considered chainable (#27)
  • Error last argument is considered chainable (#28)

2.2

21 Sep 16:42
2.2
ac8c913
Compare
Choose a tag to compare
2.2
  • Remove DisallowAlternativePHPTags as they have been removed from PHP 7.0 onwards (#25)
  • PHP_CodeSniffer 3.1 (#26)
  • New sniff Consistence.Exceptions.ExceptionDeclaration checks exception rules from the standard (#19 thanks to @mhujer)
    • Exception name must end with Exception
    • Exception must be chainable
    • Exception must be placed in exception (configurable) directory

2.1

16 Sep 13:58
2.1
2bafec2
Compare
Choose a tag to compare