@@ -2,28 +2,28 @@ |
||
2 | 2 | |
3 | 3 | $ignoreErrors = []; |
4 | 4 | $ignoreErrors[] = [ |
5 | - // identifier: argument.type |
|
6 | - 'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<parametres\\>, string given\\.$#', |
|
7 | - 'count' => 1, |
|
8 | - 'path' => __DIR__ . '/src/Commands/ClearParametres.php', |
|
5 | + // identifier: argument.type |
|
6 | + 'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<parametres\\>, string given\\.$#', |
|
7 | + 'count' => 1, |
|
8 | + 'path' => __DIR__ . '/src/Commands/ClearParametres.php', |
|
9 | 9 | ]; |
10 | 10 | $ignoreErrors[] = [ |
11 | - // identifier: argument.type |
|
12 | - 'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<parametres\\>, string given\\.$#', |
|
13 | - 'count' => 1, |
|
14 | - 'path' => __DIR__ . '/src/Config/helpers.php', |
|
11 | + // identifier: argument.type |
|
12 | + 'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<parametres\\>, string given\\.$#', |
|
13 | + 'count' => 1, |
|
14 | + 'path' => __DIR__ . '/src/Config/helpers.php', |
|
15 | 15 | ]; |
16 | 16 | $ignoreErrors[] = [ |
17 | - // identifier: assign.propertyType |
|
18 | - 'message' => '#^Property BlitzPHP\\\\Parametres\\\\Handlers\\\\DatabaseHandler\\:\\:\\$builder \\(BlitzPHP\\\\Database\\\\Builder\\\\BaseBuilder\\) does not accept BlitzPHP\\\\Contracts\\\\Database\\\\BuilderInterface\\.$#', |
|
19 | - 'count' => 1, |
|
20 | - 'path' => __DIR__ . '/src/Handlers/DatabaseHandler.php', |
|
17 | + // identifier: assign.propertyType |
|
18 | + 'message' => '#^Property BlitzPHP\\\\Parametres\\\\Handlers\\\\DatabaseHandler\\:\\:\\$builder \\(BlitzPHP\\\\Database\\\\Builder\\\\BaseBuilder\\) does not accept BlitzPHP\\\\Contracts\\\\Database\\\\BuilderInterface\\.$#', |
|
19 | + 'count' => 1, |
|
20 | + 'path' => __DIR__ . '/src/Handlers/DatabaseHandler.php', |
|
21 | 21 | ]; |
22 | 22 | $ignoreErrors[] = [ |
23 | - // identifier: assign.propertyType |
|
24 | - 'message' => '#^Property BlitzPHP\\\\Parametres\\\\Handlers\\\\DatabaseHandler\\:\\:\\$db \\(BlitzPHP\\\\Database\\\\Connection\\\\BaseConnection\\) does not accept BlitzPHP\\\\Contracts\\\\Database\\\\ConnectionInterface\\.$#', |
|
25 | - 'count' => 1, |
|
26 | - 'path' => __DIR__ . '/src/Handlers/DatabaseHandler.php', |
|
23 | + // identifier: assign.propertyType |
|
24 | + 'message' => '#^Property BlitzPHP\\\\Parametres\\\\Handlers\\\\DatabaseHandler\\:\\:\\$db \\(BlitzPHP\\\\Database\\\\Connection\\\\BaseConnection\\) does not accept BlitzPHP\\\\Contracts\\\\Database\\\\ConnectionInterface\\.$#', |
|
25 | + 'count' => 1, |
|
26 | + 'path' => __DIR__ . '/src/Handlers/DatabaseHandler.php', |
|
27 | 27 | ]; |
28 | 28 | |
29 | 29 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | foreach ($this->handlers as $handler) { |
68 | 68 | if ($handler->has($file, $property, $context)) { |
69 | 69 | if (is_array($data = $handler->get($file, $property, $context)) && $property !== $dotProperty) { |
70 | - return Arr::getRecursive($data, str_replace($property . '.', '', $dotProperty)); |
|
71 | - } |
|
72 | - return $data; |
|
70 | + return Arr::getRecursive($data, str_replace($property . '.', '', $dotProperty)); |
|
71 | + } |
|
72 | + return $data; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
@@ -168,9 +168,9 @@ discard block |
||
168 | 168 | */ |
169 | 169 | private function prepareFileAndProperty(string $key): array |
170 | 170 | { |
171 | - $parts = $this->parseDotSyntax($key); |
|
172 | - $file = array_shift($parts); |
|
173 | - $property = $parts[0]; |
|
171 | + $parts = $this->parseDotSyntax($key); |
|
172 | + $file = array_shift($parts); |
|
173 | + $property = $parts[0]; |
|
174 | 174 | |
175 | 175 | $config = config($file); |
176 | 176 |