@@ -284,6 +284,9 @@ |
||
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); |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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", |