@@ -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 | } |
@@ -193,12 +193,12 @@ |
||
193 | 193 | $values = $this->readValueToInject($variable, $environment); |
194 | 194 | $formatter = $this->getFormatterForCurrentTargetFile(); |
195 | 195 | |
196 | - if(! is_array($values)) |
|
196 | + if( ! is_array($values)) |
|
197 | 197 | { |
198 | 198 | $values = array($values); |
199 | 199 | } |
200 | 200 | |
201 | - array_walk($values, function (& $value) use ($formatter) { |
|
201 | + array_walk($values, function(& $value) use ($formatter) { |
|
202 | 202 | $value = $formatter->format($value); |
203 | 203 | }); |
204 | 204 |
@@ -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 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | $this['vcs'] = $this['git']; |
158 | 158 | |
159 | - $this['vcsHandler'] = $this->protect(function (Vcs $vcs) { |
|
159 | + $this['vcsHandler'] = $this->protect(function(Vcs $vcs) { |
|
160 | 160 | $handler = new VcsHandler($vcs, $this['finder']); |
161 | 161 | |
162 | 162 | $handler->setLogger($this['logger']) |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | return new \Psr\Log\NullLogger(); |
173 | 173 | }); |
174 | 174 | |
175 | - $this['formatter.provider'] = $this->share(function ($c) { |
|
175 | + $this['formatter.provider'] = $this->share(function($c) { |
|
176 | 176 | return new ProfileProvider($c['profile']); |
177 | 177 | }); |
178 | 178 |
@@ -141,11 +141,11 @@ discard block |
||
141 | 141 | $hydrator = $this->app['hydrator']; |
142 | 142 | $unusedVariables = $hydrator->getUnusedVariables(); |
143 | 143 | |
144 | - if(! empty($unusedVariables)) |
|
144 | + if( ! empty($unusedVariables)) |
|
145 | 145 | { |
146 | 146 | $logger = $this->app['logger']; |
147 | 147 | |
148 | - $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them'). |
|
148 | + $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them') . |
|
149 | 149 | $logger->warning(sprintf( |
150 | 150 | 'Unused variables : %s', |
151 | 151 | implode(', ', $unusedVariables) |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | { |
158 | 158 | $strings = $input->getOption($optionName); |
159 | 159 | |
160 | - if(! is_array($strings)) |
|
160 | + if( ! is_array($strings)) |
|
161 | 161 | { |
162 | 162 | $strings = array($strings); |
163 | 163 | } |