SlevomatCodingStandard.TypeHints.DeclareStrictTypes (d95135d489b5633ef874855c9a07c2db85f9aedb)slevomat/coding-standard from ^7.0.18 to ^8.6.3 (1d2c9a5fdba898bd963a356063cf77ac09f5a96a, c638c46425822cdd2e9a6e6fa9182414689e48db)Generic.PHP.LowerCaseType rule disabled due to a syntax mistake (cd470ea598dcf9c5de3dd05517c667905b871be9).php files (a1d22eb952cb689e04e2357533a01550ed4b6575)list(...) = $var <rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
- <property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
- <property name="newlinesCountAfterDeclare" value="1"/>
+ <property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
+ <property name="newlinesCountAfterDeclare" value="2"/>
<property name="spacesCountAroundEqualsSign" value="1"/>
</properties>
</rule>
@@ -94,16 +94,13 @@
<rule ref="PEAR.NamingConventions.ValidClassName"/>
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
- <rule ref="PSR1.Classes.ClassDeclaration"/>
- <rule ref="PSR1.Files.SideEffects"/>
- <rule ref="PSR2.ControlStructures.ControlStructureSpacing"/>
- <rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
- <rule ref="PSR2.Files.EndFileNewline"/>
- <rule ref="PSR2.Methods.MethodDeclaration"/>
- <rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
- <rule ref="PSR2.Namespaces.UseDeclaration"/>
<rule ref="Squiz.Strings.DoubleQuoteUsage" />
- <rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
+ <rule ref="Squiz.Strings.ConcatenationSpacing">
+ <properties>
+ <property name="spacing" value="1"/>
+ <property name="ignoreNewlines" value="true"/>
+ </properties>
+ </rule>
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
<rule ref="Squiz.PHP.DiscouragedFunctions">
<properties>
@@ -141,6 +138,12 @@
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine">
<severity>0</severity>
</rule>
- <rule ref="PSR12.Keywords.ShortFormTypeKeywords"/>
- <rule ref="PSR12.Classes.ClassInstantiation"/>
+ <rule ref="PSR1"/>
+ <rule ref="PSR2">
+ <exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
+ </rule>
+ <rule ref="PSR12">
+ <exclude name="PSR12.Files.DeclareStatement.SpaceFoundAfterDirective"/>
+ <exclude name="PSR12.Files.DeclareStatement.SpaceFoundBeforeDirectiveValue"/>
+ </rule>
</ruleset>
Drop:
<rule ref="PEAR.Commenting.FunctionComment"/>
<rule ref="PEAR.Commenting.InlineComment"/>
<rule ref="Squiz.PHP.CommentedOutCode">
<properties>
<property name="maxPercentage" value="50"/>
</properties>
</rule>
Add:
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
<rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
<rule ref="Squiz.Strings.DoubleQuoteUsage" />
First version
How can I help you explore Laravel packages today?