Test Setup Failed
Push — nln-bump-to-php8.3 ( 4ce985...2d3a4a )
by Nicolas
07:48 queued 06:51
created
src/Console/ConfigureActionCommand.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         {
147 147
             $processor->setSystemEnvironment($this->systemEnvironment);
148 148
 
149
-             $this->app['logger']->info(sprintf(
149
+                $this->app['logger']->info(sprintf(
150 150
                 'Hydrate <important>system</important> variables with <important>%s</important> values',
151 151
                 $this->systemEnvironment
152 152
             ));
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
         foreach($overrides as $variable => $value)
198 198
         {
199 199
             $logger->info(sprintf(
200
-               'Override <important>%s</important> with value <important>%s</important>',
201
-               $variable,
202
-               $value
200
+                'Override <important>%s</important> with value <important>%s</important>',
201
+                $variable,
202
+                $value
203 203
             ));
204 204
 
205 205
             $value = $this->parseList($value);
@@ -216,9 +216,9 @@  discard block
 block discarded – undo
216 216
         foreach($data as $variable => $value)
217 217
         {
218 218
             $logger->info(sprintf(
219
-               'Set custom data <important>%s</important> with value <important>%s</important>',
220
-               $variable,
221
-               $value
219
+                'Set custom data <important>%s</important> with value <important>%s</important>',
220
+                $variable,
221
+                $value
222 222
             ));
223 223
 
224 224
             $reader->setCustomData($variable, $this->filterValue($value));
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\Console;
6 6
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $sourcePath = $profile->getSourcePath();
108 108
         }
109 109
 
110
-        if(! is_array($sourcePath))
110
+        if( ! is_array($sourcePath))
111 111
         {
112 112
             $sourcePath = [$sourcePath];
113 113
         }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     {
174 174
         $strings = $input->getOption($optionName);
175 175
 
176
-        if(! is_array($strings))
176
+        if( ! is_array($strings))
177 177
         {
178 178
             $strings = [$strings];
179 179
         }
Please login to merge, or discard this patch.
src/Command.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
         }
117 117
 
118 118
         $this->output->writeln(
119
-           $this->getLogo($this->output->isDecorated())
119
+            $this->getLogo($this->output->isDecorated())
120 120
         );
121 121
     }
122 122
 
Please login to merge, or discard this 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;
6 6
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
 ...@@...@@..
131 131
 ...@@....@@.
132 132
 
133
-ASCIIART;
133
+asciiart;
134 134
 
135 135
         $background = 'fg=magenta';
136 136
         $text = 'fg=white';
Please login to merge, or discard this patch.
src/Hydrator.php 4 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
         }
111 111
 
112 112
         $this->info(sprintf(
113
-           '%d files generated',
113
+            '%d files generated',
114 114
             count($files)
115 115
         ));
116 116
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,8 +266,7 @@
 block discarded – undo
266 266
     {
267 267
         $formatter = $this->getFormatterForCurrentTargetFile();
268 268
 
269
-        $content = preg_replace_callback(self::VARIABLE_REGEX, function(array $matches) use($environment, $formatter)
270
-        {
269
+        $content = preg_replace_callback(self::VARIABLE_REGEX, function(array $matches) use($environment, $formatter) {
271 270
             $value = $this->readValueToInject($matches['variableName'], $environment);
272 271
 
273 272
             if(is_array($value))
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 
119 119
         $targetContent = $this->injectValues($file, $content, $environment, $replacementCounter);
120 120
 
121
-        $this->debug("Write $this->currentTargetFile");
121
+        $this->debug("write $this->currentTargetFile");
122 122
 
123 123
         if($this->dryRun === false)
124 124
         {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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;
6 6
 
@@ -265,12 +265,12 @@  discard block
 block discarded – undo
265 265
         $values = $this->readValueToInject($variable, $environment);
266 266
         $formatter = $this->getFormatterForCurrentTargetFile();
267 267
 
268
-        if(! is_array($values))
268
+        if( ! is_array($values))
269 269
         {
270 270
             $values = [$values];
271 271
         }
272 272
 
273
-        array_walk($values, static function (& $value) use ($formatter) {
273
+        array_walk($values, static function(& $value) use ($formatter) {
274 274
             $value = $formatter->format($value);
275 275
         });
276 276
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
                 {
381 381
                     $values = $this->readValueToInject($matches['variableName'], $environment);
382 382
 
383
-                    if(!is_array($values))
383
+                    if( ! is_array($values))
384 384
                     {
385 385
                         throw new \RuntimeException(sprintf(
386 386
                             "Nested variable detected [%s] while writing %s at line %d",
Please login to merge, or discard this patch.
src/Console.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;
6 6
 
Please login to merge, or discard this patch.
src/ProfileReader.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         catch(ParseException $e)
57 57
         {
58 58
             throw new \RuntimeException(sprintf(
59
-               'Error while parsing profile : %s',
59
+                'Error while parsing profile : %s',
60 60
                 $e->getMessage()
61 61
             ));
62 62
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,8 +193,7 @@
 block discarded – undo
193 193
         if(
194 194
             ! array_key_exists($parameter, $parameterValidators)
195 195
             || ! $parameterValidators[$parameter] instanceof \Closure
196
-        )
197
-        {
196
+        ) {
198 197
             return;
199 198
         }
200 199
 
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;
6 6
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         foreach(array_keys($this->attributes) as $name)
69 69
         {
70
-            if(! isset($values[$name]))
70
+            if( ! isset($values[$name]))
71 71
             {
72 72
                 continue;
73 73
             }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             return;
199 199
         }
200 200
 
201
-        if(! $parameterValidators[$parameter]($value))
201
+        if( ! $parameterValidators[$parameter]($value))
202 202
         {
203 203
             throw new \RuntimeException('Parameter %s format is invalid');
204 204
         }
Please login to merge, or discard this patch.
src/Configuration.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;
6 6
 
Please login to merge, or discard this patch.
src/Filesystem/Adapters/MultipleAdapter.php 2 patches
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\Filesystem\Adapters;
6 6
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             }
37 37
         }
38 38
 
39
-        throw new \RuntimeException("Key $key not found");
39
+        throw new \RuntimeException("key $key not found");
40 40
     }
41 41
     
42 42
     public function read($key)
Please login to merge, or discard this patch.
src/Filesystem/Adapters/SingleLocalFile.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\Filesystem\Adapters;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function read($key)
22 22
     {
23
-        if(! $this->exists($key))
23
+        if( ! $this->exists($key))
24 24
         {
25 25
             return false;
26 26
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function mtime($key)
47 47
     {
48
-        if(! $this->exists($key))
48
+        if( ! $this->exists($key))
49 49
         {
50 50
             return false;
51 51
         }
Please login to merge, or discard this patch.
src/ConfigurableProcessor.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;
6 6
 
Please login to merge, or discard this patch.