@@ -49,7 +49,7 @@ |
||
49 | 49 | { |
50 | 50 | if($value === '<string>') |
51 | 51 | { |
52 | - $result = function ($value) use ($result) { |
|
52 | + $result = function($value) use ($result) { |
|
53 | 53 | return str_replace('<string>', $value, $result); |
54 | 54 | }; |
55 | 55 | } |
@@ -38,12 +38,12 @@ |
||
38 | 38 | |
39 | 39 | foreach($parts as $part) |
40 | 40 | { |
41 | - if(! isset($current[$part])) |
|
41 | + if( ! isset($current[$part])) |
|
42 | 42 | { |
43 | 43 | $current[$part] = array(); |
44 | 44 | } |
45 | 45 | |
46 | - $current= & $current[$part]; |
|
46 | + $current = & $current[$part]; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | $current = $value; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | if($verbosity <= $this->output->getVerbosity()) |
44 | 44 | { |
45 | - if(! is_array($messages)) |
|
45 | + if( ! is_array($messages)) |
|
46 | 46 | { |
47 | 47 | $messages = array($messages); |
48 | 48 | } |
@@ -123,7 +123,7 @@ |
||
123 | 123 | $titleLineNumber = count($lines); |
124 | 124 | |
125 | 125 | // ensure an empty line preceeds comment |
126 | - if(! empty($lines[$titleLineNumber - 1])) |
|
126 | + if( ! empty($lines[$titleLineNumber - 1])) |
|
127 | 127 | { |
128 | 128 | $lines[$titleLineNumber] = ''; |
129 | 129 | $titleLineNumber++; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $rootPath = ''; |
65 | 65 | } |
66 | 66 | |
67 | - if(! empty($rootPath)) |
|
67 | + if( ! empty($rootPath)) |
|
68 | 68 | { |
69 | 69 | $rootPath .= $directorySeparator; |
70 | 70 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | foreach(array_keys($this->attributes) as $name) |
67 | 67 | { |
68 | - if(! isset($values[$name])) |
|
68 | + if( ! isset($values[$name])) |
|
69 | 69 | { |
70 | 70 | continue; |
71 | 71 | } |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | return true; |
197 | 197 | } |
198 | 198 | |
199 | - if(! $parameterValidators[$parameter]($value)) |
|
199 | + if( ! $parameterValidators[$parameter]($value)) |
|
200 | 200 | { |
201 | 201 | throw new \RuntimeException('Paramater %s format is invalid'); |
202 | 202 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | public function read($key) |
20 | 20 | { |
21 | - if(! $this->exists($key)) |
|
21 | + if( ! $this->exists($key)) |
|
22 | 22 | { |
23 | 23 | return false; |
24 | 24 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | public function mtime($key) |
45 | 45 | { |
46 | - if(! $this->exists($key)) |
|
46 | + if( ! $this->exists($key)) |
|
47 | 47 | { |
48 | 48 | return false; |
49 | 49 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | public function setDefaultEnvironment($environment) |
42 | 42 | { |
43 | - if(! empty($environment) && is_string($environment)) |
|
43 | + if( ! empty($environment) && is_string($environment)) |
|
44 | 44 | { |
45 | 45 | $this->defaultEnvironment = $environment; |
46 | 46 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | }, $value); |
96 | 96 | } |
97 | 97 | |
98 | - if(! is_string($value)) |
|
98 | + if( ! is_string($value)) |
|
99 | 99 | { |
100 | 100 | return $value; |
101 | 101 | } |
@@ -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", |