@@ -153,7 +153,7 @@ |
||
153 | 153 | if(! empty($errors)) |
154 | 154 | { |
155 | 155 | throw new \RuntimeException(sprintf( |
156 | - 'Error : a group can not be part of another group (%s)', |
|
156 | + 'Error : a group can not be part of another group (%s)', |
|
157 | 157 | implode(', ', $errors) |
158 | 158 | )); |
159 | 159 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Parser; |
6 | 6 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | private function hasDuplicatedValues(array $values): bool |
112 | 112 | { |
113 | - $duplicatedValues = array_filter(array_count_values($values), function ($counter) { |
|
113 | + $duplicatedValues = array_filter(array_count_values($values), function($counter) { |
|
114 | 114 | return $counter !== 1; |
115 | 115 | }); |
116 | 116 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | $errors = array_intersect($allEnvironments, array_keys($this->groups)); |
158 | 158 | |
159 | - if(! empty($errors)) |
|
159 | + if( ! empty($errors)) |
|
160 | 160 | { |
161 | 161 | throw new \RuntimeException(sprintf( |
162 | 162 | 'Error : a group can not be part of another group (%s)', |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Parser; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Parser; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | private function checkFilenameIsValid(string $filename): void |
32 | 32 | { |
33 | - if(! preg_match('~.*\.conf$~', $filename)) |
|
33 | + if( ! preg_match('~.*\.conf$~', $filename)) |
|
34 | 34 | { |
35 | 35 | $this->triggerError("$filename is not a valid file name", 'Invalid dependency'); |
36 | 36 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Parser; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Parser; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Parser; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration\Collections; |
6 | 6 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | public function get(string $sectionName): SectionParser |
86 | 86 | { |
87 | - if(! $this->has($sectionName)) |
|
87 | + if( ! $this->has($sectionName)) |
|
88 | 88 | { |
89 | 89 | throw new \RuntimeException('Unknown section name ' . $sectionName); |
90 | 90 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration; |
6 | 6 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | public function getAllVariables(): array |
46 | 46 | { |
47 | - $variables = array_map(function($key){ |
|
47 | + $variables = array_map(function($key) { |
|
48 | 48 | return $this->extractVariableName($key); |
49 | 49 | }, array_keys($this->values)); |
50 | 50 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | public function getAllVariables(): array |
46 | 46 | { |
47 | - $variables = array_map(function($key){ |
|
47 | + $variables = array_map(function($key) { |
|
48 | 48 | return $this->extractVariableName($key); |
49 | 49 | }, array_keys($this->values)); |
50 | 50 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | return $this->values[$key]['value']; |
40 | 40 | } |
41 | 41 | |
42 | - throw new \RuntimeException("Variable $variable does not exist"); |
|
42 | + throw new \RuntimeException("variable $variable does not exist"); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | public function getAllVariables(): array |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Configuration; |
6 | 6 |