@@ -13,6 +13,7 @@ https://github.com/slevomat/coding-standard
1313 <rule ref =" SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash" />
1414
1515 <!-- Looks for unused imports from other namespaces. -->
16+ <!--
1617 <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
1718 <properties>
1819 <property name="searchAnnotations" value="yes"/>
@@ -26,7 +27,7 @@ https://github.com/slevomat/coding-standard
2627 <element value="@internal"/>
2728 </property>
2829 </properties>
29- </rule >
30+ </rule>-->
3031
3132 <rule ref =" SlevomatCodingStandard.Namespaces.UselessAlias" />
3233
@@ -254,21 +255,37 @@ https://github.com/slevomat/coding-standard
254255 </properties >
255256 </rule >
256257 <rule ref =" SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly" />
258+
257259 <rule ref =" SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
258- <rule ref =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" >
260+ <rule ref =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" > <!-- use statements for classes -->
259261 <properties >
260262 <property name =" allowWhenNoNamespace" value =" false" />
261- <property name =" allowFallbackGlobalConstants" value =" true" />
262- <property name =" allowFallbackGlobalFunctions" value =" true" />
263263 <property name =" allowFullyQualifiedGlobalClasses" value =" true" />
264264 <property name =" allowFullyQualifiedGlobalConstants" value =" true" />
265265 <property name =" allowFullyQualifiedGlobalFunctions" value =" true" />
266- <property name =" allowFullyQualifiedNameForCollidingClasses" value =" true" />
267266 <property name =" allowFullyQualifiedNameForCollidingConstants" value =" true" />
268267 <property name =" allowFullyQualifiedNameForCollidingFunctions" value =" true" />
269268 <property name =" searchAnnotations" value =" true" />
270269 </properties >
271270 </rule >
271+ <rule ref =" NetteCodingStandard.Namespaces.OptimizeGlobalCalls" > <!-- use statements for functions & constants -->
272+ <properties >
273+ <property name =" optimizedFunctionsOnly" value =" true" />
274+ <property name =" ignoredFunctions" type =" array" >
275+ <element value =" dump" />
276+ <element value =" var_dump" />
277+ <element value =" print_r" />
278+ <element value =" error_get_last" />
279+ <element value =" trigger_error" />
280+ <element value =" debug_backtrace" />
281+ </property >
282+ <property name =" ignoredConstants" type =" array" >
283+ <element value =" E_*" />
284+ <element value =" DEBUG_BACKTRACE_IGNORE_ARGS" />
285+ </property >
286+ </properties >
287+ </rule >
288+
272289 <rule ref =" SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment" >
273290 <exclude name =" SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment.OneLinePropertyComment" />
274291 </rule >
0 commit comments