cs and phpstan fixes

This commit is contained in:
Dennis Eichhorn 2020-10-24 17:52:17 +02:00
parent 3a55751b0b
commit 67c344ce19
3 changed files with 8 additions and 1440 deletions

View File

@ -16,6 +16,7 @@
<exclude-pattern>*/node_modules/*</exclude-pattern> <exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/Resources/*</exclude-pattern> <exclude-pattern>*/Resources/*</exclude-pattern>
<exclude-pattern>*/Web/*</exclude-pattern> <exclude-pattern>*/Web/*</exclude-pattern>
<exclude-pattern>*/omsSetup/*</exclude-pattern>
<exclude-pattern>*/Routes/*</exclude-pattern> <exclude-pattern>*/Routes/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern> <exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern> <exclude-pattern>*/vendor/*</exclude-pattern>
@ -36,6 +37,7 @@
<rule ref="Generic.CodeAnalysis.EmptyStatement"/> <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"> <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall">
<exclude-pattern>*Sort.php</exclude-pattern> <exclude-pattern>*Sort.php</exclude-pattern>
<exclude-pattern>*Gamma.php</exclude-pattern>
</rule> </rule>
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"> <rule ref="Generic.CodeAnalysis.JumbledIncrementer">
<exclude-pattern>*Sort.php</exclude-pattern> <exclude-pattern>*Sort.php</exclude-pattern>
@ -115,6 +117,8 @@
<rule ref="Generic.PHP.LowerCaseConstant"/> <rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="Generic.PHP.NoSilencedErrors"> <rule ref="Generic.PHP.NoSilencedErrors">
<exclude-pattern>*Server.php</exclude-pattern><!-- Socket shouldn't output errors --> <exclude-pattern>*Server.php</exclude-pattern><!-- Socket shouldn't output errors -->
<exclude-pattern>*Ftp/File.php</exclude-pattern><!-- Socket shouldn't output errors -->
<exclude-pattern>*Ftp/Directory.php</exclude-pattern><!-- Socket shouldn't output errors -->
</rule> </rule>
<rule ref="Generic.Strings.UnnecessaryStringConcat"> <rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties> <properties>

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,7 @@ parameters:
- *.tpl.php - *.tpl.php
- */tests/* - */tests/*
- */Modules/Media/Files/* - */Modules/Media/Files/*
- */omsSetup/*
- */d0cbb361b14ac3ef32486f0a09ab937d/* - */d0cbb361b14ac3ef32486f0a09ab937d/*
- */test/* - */test/*
- *Test.php - *Test.php
@ -43,6 +44,9 @@ parameters:
- '#^Offset .* does not exist on array.*#' - '#^Offset .* does not exist on array.*#'
- '#.*unserialize\(\) has parameter .* with no typehint specified#' - '#.*unserialize\(\) has parameter .* with no typehint specified#'
- '#.*refClass with generic class ReflectionClass but does not specify its types.*#' - '#.*refClass with generic class ReflectionClass but does not specify its types.*#'
-
message: '#.*has parameter \$con with no typehint specified#'
path: *Ftp/File.php
- -
message: "#^Cannot call method getTimestamp\\(\\) on DateTime\\|null\\.$#" message: "#^Cannot call method getTimestamp\\(\\) on DateTime\\|null\\.$#"
path: *Algorithm/JobScheduling/Weighted.php path: *Algorithm/JobScheduling/Weighted.php