Completed
Push — nln-php7 ( 6ce259...311875 )
by Nicolas
02:29
created
src/Hydrator.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -284,6 +284,9 @@
 block discarded – undo
284 284
         );
285 285
     }
286 286
 
287
+    /**
288
+     * @param string $fileContent
289
+     */
287 290
     private function removeFileDirectives($fileContent)
288 291
     {
289 292
         return preg_replace('~(<%\s*karma:[^%]*%>\s*)~i', '', $fileContent);
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
 
@@ -266,12 +266,12 @@  discard block
 block discarded – undo
266 266
         $values = $this->readValueToInject($variable, $environment);
267 267
         $formatter = $this->getFormatterForCurrentTargetFile();
268 268
 
269
-        if(! is_array($values))
269
+        if( ! is_array($values))
270 270
         {
271 271
             $values = [$values];
272 272
         }
273 273
 
274
-        array_walk($values, function (& $value) use ($formatter) {
274
+        array_walk($values, function(& $value) use ($formatter) {
275 275
             $value = $formatter->format($value);
276 276
         });
277 277
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
                 {
382 382
                     $values = $this->readValueToInject($matches['variableName'], $environment);
383 383
 
384
-                    if(!is_array($values))
384
+                    if( ! is_array($values))
385 385
                     {
386 386
                         throw new \RuntimeException(sprintf(
387 387
                             "Nested variable detected [%s] while writing %s at line %d",
Please login to merge, or discard this patch.