All notable changes to laravel-phpcs
will be documented in this file
- Modified rule to allow empty catches.
- Added rule to disallow the use of variables without camel case.
- Multiple parameters are now supported on the same line in multi-line functions.
- Updated slevomat/coding-standard to estable version.
- Added support to enums.
- Updated php_codesniffer to 3.7.
- Updated slevomat/coding-standard to dev-php81 to support enums.
- Custom sniffs have been added to improve the Laravel standard.
- Added
SlevomatCodingStandard.Namespaces.UnusedUses
to avoid unused uses. - Added
SlevomatCodingStandard.Namespaces.UseFromSameNamespace
to avoid uses from same namespace. - Added
SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
for the imports to be sorted alphabetically. - Added
SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation
to enforces fully qualified names of classes and interfaces in phpDocs. - Added
SlevomatCodingStandard.PHP.UselessSemicolon
to avoid useless semicolons. - Added
SlevomatCodingStandard.Classes.MethodSpacing
to check that there is a blank line between the methods. - Added
SlevomatCodingStandard.Functions.ArrowFunctionDeclaration
to check that the number of spaces after and before the arrow is correct. - Added
SlevomatCodingStandard.Files.TypeNameMatchesFileName
to check that the type name matches the file name.
- Added
Generic.NamingConventions.CamelCapsFunctionName
to avoid function names withsnake_case
- Added new rule
Generic.Formatting.SpaceAfterNot
- Added rule to prefer single quotation marks
- Now the Providers code is checked
- Deleted illuminate/support dependency to make the package compatible with any version of Laravel
- Added optional git pre-hook to validate with phpcs before every commit.
- Excluded route files for Generic.CodeAnalysis.UnusedFunctionParameter rule.
- initial release