doctrine/coding-standard
Doctrine Coding Standard provides a shared PHP_CodeSniffer ruleset used across Doctrine projects. Based heavily on Slevomat, it helps enforce consistent formatting, naming, and best practices in PHP codebases via an easy-to-install package.
Backwards incompatible release (major)
13.0.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
339: fix: update rule for language construct spacing thanks to @simPod
Backwards incompatible release (major)
Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 1
327: feat: enable SlevomatCodingStandard.TypeHints.ClassConstantTypeHint thanks to @simPod
Backwards incompatible release (major)
Feature release (minor)
Backwards incompatible release (major)
Total issues resolved: 0
Total pull requests resolved: 6
Total contributors: 2
304: String interpolation: don't suggest sprintf() thanks to @derrabus
295: feat: handle blank lines between class properties thanks to @simPod
Backwards incompatible release (major)
use thanks to @simPodThis release is the same as 9.0.0, in order to "cancel" 9.0.1, which had many breaking changes.
9.0.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 5
Total contributors: 1
269: fix: use tmp-patch file name thanks to @simPod
264: chore(deps): require slevomat/coding-standard v8 and squizlabs/php_codesniffer v3.7 thanks to @simPod
257: Add tests for PHP 8 thanks to @simPod
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
238: Add psalm-prefixed annotations to param and return group thanks to @simonberger
8.2.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 2
237: Remove SlevomatCodingStandard.Classes.UnusedPrivateElements thanks to @morozov
Total issues resolved: 0
Total pull requests resolved: 9
Total contributors: 6
226: Still works on PHP 7.1 thanks to @beberlei
220: Drop Travis thanks to @greg0ire
195: Makefile improvements thanks to @greg0ire
Release 8.1.0
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
213: Composer: update PHPCS Composer plugin dependency thanks to @jrfnl
Release 8.0.0
This new major version includes rules that make this repository of standards fully compatible with PSR-12 and additional rules for PHP 7.4.
194: Update tests expectations based on bugfix in dependencies thanks to @carusogabriel
176: Remove dead sniffs autoload thanks to @WyriHaximus
170: Improve diff while running test-report thanks to @carusogabriel
169: Ensure that spacing around cases are consistent thanks to @carusogabriel
159: Normalize documentation comments thanks to @mathieu-bour
157: Improve diff while running test-fix thanks to @carusogabriel
151: Remove usless interface and trait comments thanks to @BackEndTea
192: Allow PHP 8 thanks to @greg0ire
147: Use stable version of PHP 7.4 in Travis CI thanks to @carusogabriel
SingleLineArrayWhitespace to ensure single line arrays spacing thanks to @carusogabrielNegationOperatorSpacingSniff to ensure no space before - thanks to @carusogabrielRelease 7.0.2
Release 7.0.1
Release 7.0.0
composer.json master branch-alias to 7.0.x-dev thanks to @Ocramius127: Drop PHP 7.1, add 7.4 to Travis thanks to @simPod
This new major release brings in some new default rules:
Abstract, Trait, Exception, Interface prefixes along with suffixes/** class Foo */ for class Foo comments (some editors add it by default, and it is not useful)$foo = $foo = bar()function (int $foo)$foo::BAR is now a violationreturn statement when not directly within a flow control constructTotal issues resolved: 19
Abstract, Exception and Interface prefixing too thanks to @greg0ireIn this version we address the issue regarding formatting associative arrays and upgraded composer installer dependency.
use thanks to @deeky666Total issues resolved: 7
This release introduces a few new additional checks that are enabled by default:
??) operator where applicablenew statementTotal issues resolved: 7
[@requires](https://github.com/requires) annotation thanks to @Majkl578This release adds sniffs to import global functions and constants.
Total issues resolved: 3
Improvement
Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:
!),uses,int vs. integer),We're also moving towards PHP 7.1/7.2 standards and strict code. As part of this, we're now including checks for:
declare(strict_types=1) in every file,This release makes this project compatible with PHPCS v3.0 and implements some missing sniffs (also making sure that we can apply automatic fixes with PHPCBF).
Total issues resolved: 1
First development release.
This is an intermediate release aimed at people relying on PHP_CodeSniffer 1.*. It is required in order for us to transition to PHP_CodeSniffer 2.* support.
How can I help you explore Laravel packages today?