Update phpcs rules

This commit is contained in:
Joshua Ramon Enslin 2023-05-24 13:18:34 +02:00
parent f73cf2f0ff
commit 041206040f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -13,30 +13,31 @@
<rule ref='Squiz.Commenting.FunctionComment'/> <rule ref='Squiz.Commenting.FunctionComment'/>
<rule ref='Squiz.Commenting.ClassComment'/> <rule ref='Squiz.Commenting.ClassComment'/>
<rule ref='SlevomatCodingStandard.PHP.UselessParentheses'/> <!-- <rule ref='SlevomatCodingStandard.PHP.UselessParentheses'/>-->
<rule ref='SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking'/> <rule ref='SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking'/>
<!-- <rule ref='SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable'/> --> <!-- <rule ref='SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable'/> -->
<rule ref='SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable'/> <rule ref='SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable'/>
<!-- <rule ref='SlevomatCodingStandard.Variables.UnusedVariable'/> --> <!-- <rule ref='SlevomatCodingStandard.Variables.UnusedVariable'/> -->
<!-- <rule ref='SlevomatCodingStandard.Variables.UselessVariable'/> --> <rule ref='SlevomatCodingStandard.Variables.UselessVariable'/>
<rule ref='SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace'/> <rule ref='SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace'/>
<rule ref='SlevomatCodingStandard.Classes.ConstantSpacing'/> <rule ref='SlevomatCodingStandard.Classes.ConstantSpacing'/>
<rule ref='SlevomatCodingStandard.PHP.TypeCast'/> <rule ref='SlevomatCodingStandard.PHP.TypeCast'/>
<!-- <rule ref='SlevomatCodingStandard.Classes.ClassConstantVisibility'/> --> <rule ref='SlevomatCodingStandard.Classes.ClassConstantVisibility'/>
<rule ref='SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing'/> <rule ref='SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing'/>
<rule ref='SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing'/> <!-- <rule ref='SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing'/> -->
<!--
<rule ref="SlevomatCodingStandard.Classes.ClassStructure"> <rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<properties> <properties>
<property name="groups" type="array"> <property name="groups" type="array">
<element value="uses"/> <element value="uses"/>
<!-- Public constants are first but you don't care about the order of protected or private constants --> Public constants are first but you don't care about the order of protected or private constants
<element value="public constants"/> <element value="public constants"/>
<element value="constants"/> <element value="constants"/>
<!-- You don't care about the order among the properties. The same can be done with "properties" shortcut --> You don't care about the order among the properties. The same can be done with "properties" shortcut
<element value="public static properties, protected static properties, private static properties"/> <element value="public static properties, protected static properties, private static properties"/>
<element value="public properties, protected properties, private properties"/> <element value="public properties, protected properties, private properties"/>
@ -47,6 +48,7 @@
</property> </property>
</properties> </properties>
</rule> </rule>
-->
<!-- <!--
<rule ref='PEAR.ControlStructures.ControlSignature'> <rule ref='PEAR.ControlStructures.ControlSignature'>