Passed
Push — nln-php7 ( 5c4f20...6ce259 )
by Nicolas
03:34
created
src/Configuration/AbstractReader.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         }
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $environment
53
+     */
51 54
     public function getAllValuesForEnvironment(?string $environment = null): array
52 55
     {
53 56
         $result = [];
Please login to merge, or discard this patch.
src/Console/ConfigureActionCommand.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -32,6 +32,11 @@  discard block
 block discarded – undo
32 32
     protected
33 33
         $environment;
34 34
 
35
+    /**
36
+     * @param string $name
37
+     * @param string $description
38
+     * @param string $outputTitle
39
+     */
35 40
     public function __construct(Application $app, $name, $description, $outputTitle)
36 41
     {
37 42
         $this->name = $name;
@@ -169,6 +174,9 @@  discard block
 block discarded – undo
169 174
         }
170 175
     }
171 176
 
177
+    /**
178
+     * @param string $optionName
179
+     */
172 180
     private function parseOptionWithAssignments(InputInterface $input, $optionName)
173 181
     {
174 182
         $strings = $input->getOption($optionName);
Please login to merge, or discard this patch.
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.
src/Hydrator.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -253,6 +253,10 @@  discard block
 block discarded – undo
253 253
         }
254 254
     }
255 255
 
256
+    /**
257
+     * @param string $environment
258
+     * @param string $delimiter
259
+     */
256 260
     private function generateContentForListDirective($variable, $environment, $delimiter, array $wrapper)
257 261
     {
258 262
         $values = $this->readValueToInject($variable, $environment);
@@ -276,11 +280,19 @@  discard block
 block discarded – undo
276 280
         );
277 281
     }
278 282
 
283
+    /**
284
+     * @param string $fileContent
285
+     */
279 286
     private function removeFileDirectives($fileContent)
280 287
     {
281 288
         return preg_replace('~(<%\s*karma:[^%]*%>\s*)~i', '', $fileContent);
282 289
     }
283 290
 
291
+    /**
292
+     * @param string $sourceFile
293
+     * @param string $content
294
+     * @param string $environment
295
+     */
284 296
     private function injectValues($sourceFile, $content, $environment, $replacementCounter = 0)
285 297
     {
286 298
         $replacementCounter += $this->injectScalarValues($content, $environment);
Please login to merge, or discard this patch.
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.
src/Logging/OutputInterfaceAdapter.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
     private function writeLevel($level)
51 51
     {
52 52
         $message = str_pad(sprintf(
53
-           '[%s]',
54
-           strtoupper($level)
53
+            '[%s]',
54
+            strtoupper($level)
55 55
         ), 10);
56 56
 
57 57
         $this->output->write($this->colorizeMessage($level, $message));
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         if(isset($colors[$level]))
68 68
         {
69 69
             $message = sprintf(
70
-               '<%1$s>%2$s</%1$s>',
70
+                '<%1$s>%2$s</%1$s>',
71 71
                 'fg=' . $colors[$level],
72 72
                 $message
73 73
             );
Please login to merge, or discard this patch.
src/Generator/ConfigurationFileGenerators/YamlGenerator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         if(stripos($variableName, self::DELIMITER) === false)
28 28
         {
29 29
             throw new \RuntimeException(sprintf(
30
-               'Variable %s does not contain delimiter (%s)',
30
+                'Variable %s does not contain delimiter (%s)',
31 31
                 $variableName,
32 32
                 self::DELIMITER
33 33
             ));
Please login to merge, or discard this patch.
src/Console/Display.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         foreach($values as $variable => $value)
62 62
         {
63 63
             $this->output->writeln(sprintf(
64
-               '<fg=cyan>%s</fg=cyan> = %s',
64
+                '<fg=cyan>%s</fg=cyan> = %s',
65 65
                 $variable,
66 66
                 $this->formatValue($value)
67 67
             ));
Please login to merge, or discard this patch.
src/Command.php 1 patch
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.
src/ProfileReader.php 1 patch
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.
src/Configuration/Parser.php 1 patch
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.