@@ -56,7 +56,7 @@ |
||
56 | 56 | catch(ParseException $e) |
57 | 57 | { |
58 | 58 | throw new \RuntimeException(sprintf( |
59 | - 'Error while parsing profile : %s', |
|
59 | + 'Error while parsing profile : %s', |
|
60 | 60 | $e->getMessage() |
61 | 61 | )); |
62 | 62 | } |
@@ -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 | } |
@@ -42,13 +42,13 @@ |
||
42 | 42 | |
43 | 43 | if($this->vcs->isTracked($targetFile)) |
44 | 44 | { |
45 | - $this->logger->info("Untrack $targetFile"); |
|
45 | + $this->logger->info("untrack $targetFile"); |
|
46 | 46 | $this->vcs->untrackFile($targetFile); |
47 | 47 | } |
48 | 48 | |
49 | 49 | if($this->vcs->isIgnored($targetFile) === false) |
50 | 50 | { |
51 | - $this->logger->info("Ignore $targetFile"); |
|
51 | + $this->logger->info("ignore $targetFile"); |
|
52 | 52 | $this->vcs->ignoreFile($targetFile); |
53 | 53 | } |
54 | 54 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | $this['vcs'] = $this['git']; |
166 | 166 | |
167 | - $this['vcsHandler'] = $this->protect(function (Vcs $vcs) { |
|
167 | + $this['vcsHandler'] = $this->protect(function(Vcs $vcs) { |
|
168 | 168 | $handler = new VcsHandler($vcs, $this['finder']); |
169 | 169 | |
170 | 170 | $handler->setLogger($this['logger']) |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | return new \Psr\Log\NullLogger(); |
181 | 181 | }); |
182 | 182 | |
183 | - $this['formatter.provider'] = $this->share(function ($c) { |
|
183 | + $this['formatter.provider'] = $this->share(function($c) { |
|
184 | 184 | return new ProfileProvider($c['profile']); |
185 | 185 | }); |
186 | 186 | |
@@ -193,19 +193,19 @@ discard block |
||
193 | 193 | return $hydrator; |
194 | 194 | }; |
195 | 195 | |
196 | - $this['generator.nameTranslator'] = $this->share(function ($c) { |
|
196 | + $this['generator.nameTranslator'] = $this->share(function($c) { |
|
197 | 197 | $translator = new FilePrefixTranslator(); |
198 | 198 | $translator->changeMasterFile($c['configuration.masterFile']); |
199 | 199 | |
200 | 200 | return $translator; |
201 | 201 | }); |
202 | 202 | |
203 | - $this['generator.variableProvider'] = function ($c) { |
|
203 | + $this['generator.variableProvider'] = function($c) { |
|
204 | 204 | $provider = new VariableProvider($c['parser'], $c['configuration.masterFile']); |
205 | 205 | |
206 | 206 | $profile = $c['profile']; |
207 | 207 | $options = $profile->getGeneratorOptions(); |
208 | - if(! isset($options['translator']) || $options['translator'] === 'prefix') |
|
208 | + if( ! isset($options['translator']) || $options['translator'] === 'prefix') |
|
209 | 209 | { |
210 | 210 | $provider->setNameTranslator($c['generator.nameTranslator']); |
211 | 211 | } |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | return $provider; |
214 | 214 | }; |
215 | 215 | |
216 | - $this['configurationFilesGenerator'] = $this->share(function ($c) { |
|
216 | + $this['configurationFilesGenerator'] = $this->share(function($c) { |
|
217 | 217 | return new YamlGenerator($c['sources.fileSystem'], $c['configuration'], $c['generator.variableProvider']); |
218 | 218 | }); |
219 | 219 | } |