Test Setup Failed
Push — nln-bump-to-php8.3 ( 4ce985...2d3a4a )
by Nicolas
07:48 queued 06:51
created
src/FormatterProviders/NullProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\FormatterProviders;
6 6
 
Please login to merge, or discard this patch.
src/FormatterProviders/ProfileProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\FormatterProviders;
6 6
 
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 
33 33
     private function parseFormatters($content): void
34 34
     {
35
-        if(! is_array($content))
35
+        if( ! is_array($content))
36 36
         {
37 37
             throw new \InvalidArgumentException('Syntax error in profile [formatters]');
38 38
         }
39 39
 
40 40
         foreach($content as $name => $rules)
41 41
         {
42
-            if(! is_array($rules))
42
+            if( ! is_array($rules))
43 43
             {
44 44
                 throw new \InvalidArgumentException('Syntax error in profile [formatters]');
45 45
             }
Please login to merge, or discard this patch.
src/Formatters/Raw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Formatters;
6 6
 
Please login to merge, or discard this patch.
src/Configuration/Parser.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function enableExternalSupport(): self
48 48
     {
49
-       $this->parsers->enableExternalSupport($this->fs);
49
+        $this->parsers->enableExternalSupport($this->fs);
50 50
 
51 51
         return $this;
52 52
     }
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
             if($status['found'] === false)
219 219
             {
220 220
                 $this->warning(sprintf(
221
-                   'External file %s was not found',
222
-                   $file
221
+                    'External file %s was not found',
222
+                    $file
223 223
                 ));
224 224
             }
225 225
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration;
6 6
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $files = [$masterFilePath];
85 85
 
86
-        while(! empty($files))
86
+        while( ! empty($files))
87 87
         {
88 88
             foreach($files as $file)
89 89
             {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     private function extractLines(string $filePath): array
137 137
     {
138
-        if(! $this->fs->has($filePath))
138
+        if( ! $this->fs->has($filePath))
139 139
         {
140 140
             throw new \RuntimeException("$filePath does not exist");
141 141
         }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 
183 183
     private function changeCurrentFile(string $filePath): void
184 184
     {
185
-        $this->info("Reading $filePath");
185
+        $this->info("reading $filePath");
186 186
 
187 187
         foreach($this->parsers as $parser)
188 188
         {
Please login to merge, or discard this patch.
src/Configuration/Reader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             if(! isset($this->defaultEnvironmentsForGroups[$environment]))
62 62
             {
63 63
                 throw new \RuntimeException(sprintf(
64
-                   'Group can not be used as environment (try with group %s detected)',
64
+                    'Group can not be used as environment (try with group %s detected)',
65 65
                     $environment
66 66
                 ));
67 67
             }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration;
6 6
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $this->variables = $variables;
29 29
 
30 30
         $this->externalReader = null;
31
-        if(! empty($externalVariables))
31
+        if( ! empty($externalVariables))
32 32
         {
33 33
             $this->externalReader = new Reader($externalVariables, [], $groups);
34 34
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         if(in_array($environment, $this->groupNames, false))
63 63
         {
64
-            if(! isset($this->defaultEnvironmentsForGroups[$environment]))
64
+            if( ! isset($this->defaultEnvironmentsForGroups[$environment]))
65 65
             {
66 66
                 throw new \RuntimeException(sprintf(
67 67
                    'Group can not be used as environment (try with group %s detected)',
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     private function accessVariable(string $variableName)
106 106
     {
107
-        if(! array_key_exists($variableName, $this->variables))
107
+        if( ! array_key_exists($variableName, $this->variables))
108 108
         {
109 109
             throw new \RuntimeException(sprintf(
110 110
                 'Unknown variable %s',
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     private function processExternal(string $variable, string $environment)
133 133
     {
134
-        if(! $this->externalReader instanceof self)
134
+        if( ! $this->externalReader instanceof self)
135 135
         {
136 136
             throw new \RuntimeException(sprintf(
137 137
                 'There is no external variables. %s can not be resolve for environment %s',
Please login to merge, or discard this patch.
src/Configuration/AbstractReader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function setDefaultEnvironment(string $environment): void
44 44
     {
45
-        if(! empty($environment) && is_string($environment))
45
+        if( ! empty($environment) && is_string($environment))
46 46
         {
47 47
             $this->defaultEnvironment = $environment;
48 48
         }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             }, $value);
92 92
         }
93 93
 
94
-        if(! is_string($value))
94
+        if( ! is_string($value))
95 95
         {
96 96
             return $value;
97 97
         }
Please login to merge, or discard this patch.
src/Configuration/Parser/ExternalParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Configuration/Parser/GroupParser.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     private function hasDuplicatedValues(array $values): bool
107 107
     {
108
-        $duplicatedValues = array_filter(array_count_values($values), static function ($counter) {
108
+        $duplicatedValues = array_filter(array_count_values($values), static function($counter) {
109 109
             return $counter !== 1;
110 110
         });
111 111
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         $errors = array_intersect($allEnvironments, array_keys($this->groups));
153 153
 
154
-        if(! empty($errors))
154
+        if( ! empty($errors))
155 155
         {
156 156
             throw new \RuntimeException(sprintf(
157 157
                'Error : a group can not be part of another group (%s)',
Please login to merge, or discard this patch.
src/Configuration/Parser/VariableParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.