@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | private function writeLevel($level) |
| 51 | 51 | { |
| 52 | 52 | $message = str_pad(sprintf( |
| 53 | - '[%s]', |
|
| 54 | - strtoupper($level) |
|
| 53 | + '[%s]', |
|
| 54 | + strtoupper($level) |
|
| 55 | 55 | ), 10); |
| 56 | 56 | |
| 57 | 57 | $this->output->write($this->colorizeMessage($level, $message)); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | if(isset($colors[$level])) |
| 68 | 68 | { |
| 69 | 69 | $message = sprintf( |
| 70 | - '<%1$s>%2$s</%1$s>', |
|
| 70 | + '<%1$s>%2$s</%1$s>', |
|
| 71 | 71 | 'fg=' . $colors[$level], |
| 72 | 72 | $message |
| 73 | 73 | ); |
@@ -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 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $paths = $c['sources.path']; |
| 112 | 112 | |
| 113 | - if(! is_array($paths)) |
|
| 113 | + if( ! is_array($paths)) |
|
| 114 | 114 | { |
| 115 | 115 | $paths = array($paths); |
| 116 | 116 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $c['hydrator.allowNonDistFilesOverwrite'] = true; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - if(! is_array($c['target.path'])) |
|
| 135 | + if( ! is_array($c['target.path'])) |
|
| 136 | 136 | { |
| 137 | 137 | return new Local($c['target.path']); |
| 138 | 138 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $this['git'] = $git; |
| 210 | 210 | $this['vcs'] = $git; |
| 211 | 211 | |
| 212 | - $this['vcsHandler'] = $this->protect(function (Vcs $vcs) { |
|
| 212 | + $this['vcsHandler'] = $this->protect(function(Vcs $vcs) { |
|
| 213 | 213 | $handler = new VcsHandler($vcs, $this['finder']); |
| 214 | 214 | |
| 215 | 215 | $handler->setLogger($this['logger']) |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | return new \Psr\Log\NullLogger(); |
| 226 | 226 | }); |
| 227 | 227 | |
| 228 | - $this['formatter.provider'] = $this->share(function ($c) { |
|
| 228 | + $this['formatter.provider'] = $this->share(function($c) { |
|
| 229 | 229 | return new ProfileProvider($c['profile']); |
| 230 | 230 | }); |
| 231 | 231 | |
@@ -239,19 +239,19 @@ discard block |
||
| 239 | 239 | return $hydrator; |
| 240 | 240 | }; |
| 241 | 241 | |
| 242 | - $this['generator.nameTranslator'] = $this->share(function ($c) { |
|
| 242 | + $this['generator.nameTranslator'] = $this->share(function($c) { |
|
| 243 | 243 | $translator = new FilePrefixTranslator(); |
| 244 | 244 | $translator->changeMasterFile($c['configuration.masterFile']); |
| 245 | 245 | |
| 246 | 246 | return $translator; |
| 247 | 247 | }); |
| 248 | 248 | |
| 249 | - $this['generator.variableProvider'] = function ($c) { |
|
| 249 | + $this['generator.variableProvider'] = function($c) { |
|
| 250 | 250 | $provider = new VariableProvider($c['parser'], $c['configuration.masterFile']); |
| 251 | 251 | |
| 252 | 252 | $profile = $c['profile']; |
| 253 | 253 | $options = $profile->getGeneratorOptions(); |
| 254 | - if(! isset($options['translator']) || $options['translator'] === 'prefix') |
|
| 254 | + if( ! isset($options['translator']) || $options['translator'] === 'prefix') |
|
| 255 | 255 | { |
| 256 | 256 | $provider->setNameTranslator($c['generator.nameTranslator']); |
| 257 | 257 | } |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | return $provider; |
| 260 | 260 | }; |
| 261 | 261 | |
| 262 | - $this['configurationFilesGenerator'] = $this->share(function ($c) { |
|
| 262 | + $this['configurationFilesGenerator'] = $this->share(function($c) { |
|
| 263 | 263 | return new YamlGenerator($c['sources.fileSystem'], $c['configuration'], $c['generator.variableProvider']); |
| 264 | 264 | }); |
| 265 | 265 | } |