Skip to content

Releases: webimpress/coding-standard

coding-standard 1.0.3

28 May 20:20
1.0.3
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #15 PHP\DisallowFqn - fixes importing FQN

  • #16 WhiteSpace\ScopeIndent - fixes code fixer for the case when boolean operator is at the end of the line

  • #17 fixes recognising types in @method PHPDoc tag. Fixes the following sniffs:

    • Namespaces\UnusedUseStatement - imported classes/interfaces are not removed when used within the tag,
    • PHP\CorrectClassNameCase - fixes caps in class/interface names used within the tag,
    • PHP\DisallowFqn - imports FQN used within the tag.
  • #18 Commenting\DocComment - fixes requiring content straight after doc-block - allows empty line when next content is another doc-block

  • #19 Commenting\DocComment - fixes issue with doc-block after colon (for example in switch statement) - empty line is no longer required before doc-block in that case

  • #20 Functions\ReturnType - fixes false-positive error when function may return $this

  • #21 fixes regular expression to check class name (type). Fixes the following sniffs:

    • Commenting\TagWithType - types in doc-block comments,
    • Functions\Param - param typehint and type within @param tag,
    • Functions\ReturnType - return type declaration and type within @return tag.
  • #22 fixes recognising parameter types and return type declaration with PHPDocs tags. Affects the following sniffs:

    • Functions\Param - param typehint and type within @param tag,
    • Functions\ReturnType - return type declaration and type within @return tag.
  • #23 Functions\ReturnType - fixes recognising yoda comparison in return statement and type of returned value

  • #24 fixes error in fixer when recognised type was invalid. Affects the following sniffs:

    • PHP\CorrectClassNameCase
    • PHP\DisallowFqn
  • #25 fixes type suggestions, allows self and parent to be used as specification for complex types (like object or class/interface)

  • #26 Commenting\DocComment fixes indents detection before closing brackets in doc-block comments

  • #27 Commenting\TagWithType fixes ordering types in PHPDoc tags

  • #28 WhiteSpace\ScopeIndent fixes false-positive

coding-standard 1.0.2

12 May 11:09
1.0.2
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #14 Formatting\StringClassReference - fixes regular expression to check if string is valid FQCN

coding-standard 1.0.1

11 May 12:05
1.0.1
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #5 Methods\LineAfterSniff - fixes adding empty line after method when next content is doc-block

  • #6 Commenting\Placement - fixes false-positive when space was required before comment in next line after PHP open tag

  • #7 Commenting\DocComment - fixes false-positive when new line was required before doc-block

  • #8 Formatting\StringClassReference - fixes checking if string is a valid class name before check if class/interface/trait exists

  • #9 PHP\DisallowFqn - fixes conflict with Namespaces\UnusedUseStatement when newly added import was deleted straight away

  • #10 PHP\DisallowFqn - fixes issue when backslash was removed from the beginning of the class name but there was no space before

  • #11 Arrays\Format - fixes issue with doc-block in arrays

  • #12 Formatting\RedundantParentheses - fixes false-positive for invokable classes treated as single expression

  • #13 Namespaces\UnusedUseStatement - fixes recognising classes in doc-block annotations

coding-standard 1.0.0

07 Mar 21:30
1.0.0
Compare
Choose a tag to compare

Initial release.

Added

  • Everything.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.