Skip to content

Commit a9462c3

Browse files
committed
Fixing code style issue
1 parent 34d92f3 commit a9462c3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Annotations/AnnotationGenerator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ public function buildParameterAnnotationData(string $methodName, string $paramNa
393393
}
394394
$typesMap = [];
395395
// Check for pipes and try to list possible types
396-
$typeHints = array_map(function ($typeHint) { return trim($typeHint); }, explode('|', $type));
396+
$typeHints = array_map(function ($typeHint) {
397+
return trim($typeHint);
398+
}, explode('|', $type));
397399
// If there's more than 1 type hinted and one is bool, remove bool. This is because many params default to false regardless of expected type
398400
if (count($typeHints) > 1 && in_array('bool', $typeHints)) {
399401
$typeHints = array_diff($typeHints, ['bool']);

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<exclude-pattern>tests/javascript/*</exclude-pattern>
1111
<exclude-pattern>*/vendor/*</exclude-pattern>
12+
<exclude-pattern>*/tmp/*</exclude-pattern>
1213

1314
<rule ref="Matomo"></rule>
1415

0 commit comments

Comments
 (0)