@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public static function getYamlData(string $pathToYamlFile): array |
18 | 18 | { |
19 | - return (array)Yaml::parse(file_get_contents($pathToYamlFile), Yaml::PARSE_CUSTOM_TAGS); |
|
19 | + return (array) Yaml::parse(file_get_contents($pathToYamlFile), Yaml::PARSE_CUSTOM_TAGS); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public static function isKeyInStartOfString(string $value): bool |
112 | 112 | { |
113 | - return (bool)preg_match('~^(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:(\s|$)~u', $value); |
|
113 | + return (bool) preg_match('~^(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:(\s|$)~u', $value); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public static function isLineOpeningAnArray(string $trimmedLine): bool |
123 | 123 | { |
124 | - return (bool)preg_match('~^(- +)*(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:$~u', $trimmedLine); |
|
124 | + return (bool) preg_match('~^(- +)*(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:$~u', $trimmedLine); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public static function existsServicesInHighestParent(array $yamlLines): bool |
22 | 22 | { |
23 | - $trimmedYamlLines = array_map(static function ($yamlLine) { |
|
23 | + $trimmedYamlLines = array_map(static function($yamlLine) { |
|
24 | 24 | return rtrim($yamlLine); |
25 | 25 | }, $yamlLines); |
26 | 26 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ->children() |
60 | 60 | ->arrayNode(self::CONFIG_PATHS_TO_CHECK)->isRequired()->cannotBeEmpty() |
61 | 61 | ->validate() |
62 | - ->ifTrue(function (array $patterns) { |
|
62 | + ->ifTrue(function(array $patterns) { |
|
63 | 63 | foreach ($patterns as $pattern) { |
64 | 64 | if (preg_match('/\..+/', $pattern) === 0) { |
65 | 65 | return true; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | ->/** @scrutinizer ignore-call */end() |
75 | 75 | ->arrayNode(self::CONFIG_EXCLUDED_PATHS) |
76 | 76 | ->validate() |
77 | - ->ifTrue(function (array $patterns) { |
|
77 | + ->ifTrue(function(array $patterns) { |
|
78 | 78 | foreach ($patterns as $pattern) { |
79 | 79 | if (preg_match('/\..+/', $pattern) === 0) { |
80 | 80 | return true; |