fix phpstan and phpcs

This commit is contained in:
Dennis Eichhorn 2021-10-11 22:01:04 +02:00
parent 3b01aafcec
commit d713eeff0b
2 changed files with 18 additions and 1 deletions

View File

@ -87,7 +87,10 @@
<rule ref="Generic.Formatting.DisallowMultipleStatements">
<exclude-pattern>*/tests/*</exclude-pattern><!-- inline function definition -->
</rule>
<rule ref="Generic.Formatting.MultipleStatementAlignment"/>
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<exclude-pattern>*oLib.js</exclude-pattern><!-- I don't know why it doesn't understand this -->
<exclude-pattern>*StringUtils.js</exclude-pattern><!-- I don't know why it doesn't understand this -->
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Functions.CallTimePassByReference"/>
<!--<rule ref="Generic.Metrics.CyclomaticComplexity">

View File

@ -135,3 +135,17 @@ parameters:
count: 1
path: *phpOMS/System/File/Local/Directory.php
-
message: "#^Parameter \\#2 \\$count of function array_fill expects int\\<0, max\\>, int given\\.$#"
count: 1
path: *phpOMS/Algorithm/Knapsack/Bounded.php
-
message: "#^Offset 'currency' does not exist on SimpleXMLElement\\|null\\.$#"
count: 1
path: *phpOMS/Utils/Converter/Currency.php
-
message: "#^Offset 'rate' does not exist on SimpleXMLElement\\|null\\.$#"
count: 1
path: *phpOMS/Utils/Converter/Currency.php