diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml index c0bf70bd..693cdba6 100644 --- a/lib/Doctrine/ruleset.xml +++ b/lib/Doctrine/ruleset.xml @@ -21,8 +21,6 @@ <exclude name="PSR12.Traits.UseDeclaration"/> <!-- checked by SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing.WhitespaceAfterNullabilitySymbol --> <exclude name="PSR12.Functions.NullableTypeDeclaration.WhitespaceFound"/> - <!-- checked by PSR12.ControlStructures.ControlStructureSpacing --> - <exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/> </rule> <!-- Force array element indentation with 4 spaces --> @@ -104,6 +102,8 @@ <rule ref="Generic.PHP.LowerCaseType"/> <!-- Forbid `php_sapi_name()` function --> <rule ref="Generic.PHP.SAPIUsage"/> + <!-- Require there be no space between increment/decrement operator and its operand --> + <rule ref="Generic.WhiteSpace.IncrementDecrementSpacing"/> <!-- Forbid comments starting with # --> <rule ref="PEAR.Commenting.InlineComment"/> <!-- Disallow else if in favor of elseif --> @@ -521,8 +521,6 @@ </rule> <!-- Forbid braces around string in `echo` --> <rule ref="Squiz.Strings.EchoedStrings"/> - <!-- Forbid spaces in type casts --> - <rule ref="Squiz.WhiteSpace.CastSpacing"/> <!-- Forbid blank line after function opening brace --> <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace"/> <!-- Require 1 line before and after function, except at the top and bottom --> @@ -533,8 +531,6 @@ <property name="spacingAfterLast" value="0"/> </properties> </rule> - <!-- Require there be no space between increment/decrement operator and its operand --> - <rule ref="Generic.WhiteSpace.IncrementDecrementSpacing"/> <!-- Require space after language constructs --> <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> <!-- Require space around logical operators -->