Skip to content

Releases: mreduar/laravel-phpcs

1.8.1

02 Nov 20:02
Compare
Choose a tag to compare

Modified rule to allow empty catches.

1.8.0

20 Oct 21:42
Compare
Choose a tag to compare

Added rule to disallow the use of variables without camel case.

1.7.2

17 Oct 17:20
Compare
Choose a tag to compare

Multiple parameters are now supported on the same line in multi-line functions.

1.7.1

20 Jun 18:55
Compare
Choose a tag to compare
  • Updated slevomat/coding-standard to estable version.

1.7.0

13 Jun 21:39
Compare
Choose a tag to compare
  • Added support to enums.
  • Updated php_codesniffer to 3.7.
  • Updated slevomat/coding-standard to dev-php81 to support enums.

1.6.0

21 May 02:48
Compare
Choose a tag to compare
  • 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.

1.5.0

05 Apr 18:06
Compare
Choose a tag to compare
  • Added Generic.NamingConventions.CamelCapsFunctionName to avoid function names with snake_case
  • Added new rule Generic.Formatting.SpaceAfterNot

1.4.0

15 Mar 19:34
Compare
Choose a tag to compare

Added rule to prefer single quotation marks

1.3.1

20 Feb 06:24
Compare
Choose a tag to compare

Now the Providers code is checked

1.3.0

13 Feb 02:16
Compare
Choose a tag to compare
  • Deleted illuminate/support dependency to make the package compatible with any version of Laravel