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 1 patch
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.
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.
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.
src/Console/Diff.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $table->enableFormattingTags()
46 46
             ->setHeaders(array($environment1, $environment2))
47 47
             ->displayKeys()
48
-            ->setValueRenderingFunction(function($value){
48
+            ->setValueRenderingFunction(function($value) {
49 49
                 return $this->formatValue($value);
50 50
             });
51 51
 
Please login to merge, or discard this patch.
src/ProfileReader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,8 +191,7 @@
 block discarded – undo
191 191
         if(
192 192
             ! array_key_exists($parameter, $parameterValidators)
193 193
             || ! $parameterValidators[$parameter] instanceof \Closure
194
-        )
195
-        {
194
+        ) {
196 195
             return true;
197 196
         }
198 197
 
Please login to merge, or discard this patch.
src/Configuration/InMemoryReader.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.