@@ -256,12 +256,12 @@ discard block |
||
| 256 | 256 | $values = $this->readValueToInject($variable, $environment); |
| 257 | 257 | $formatter = $this->getFormatterForCurrentTargetFile(); |
| 258 | 258 | |
| 259 | - if(! is_array($values)) |
|
| 259 | + if( ! is_array($values)) |
|
| 260 | 260 | { |
| 261 | 261 | $values = array($values); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - array_walk($values, function (& $value) use ($formatter) { |
|
| 264 | + array_walk($values, function(& $value) use ($formatter) { |
|
| 265 | 265 | $value = $formatter->format($value); |
| 266 | 266 | }); |
| 267 | 267 | |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | { |
| 371 | 371 | $values = $this->readValueToInject($matches['variableName'], $environment); |
| 372 | 372 | |
| 373 | - if(!is_array($values)) |
|
| 373 | + if( ! is_array($values)) |
|
| 374 | 374 | { |
| 375 | 375 | throw new \RuntimeException(sprintf( |
| 376 | 376 | "Nested variable detected [%s] while writing %s at line %d", |