@@ -61,7 +61,7 @@ |
||
| 61 | 61 | foreach($values as $variable => $value) |
| 62 | 62 | { |
| 63 | 63 | $this->output->writeln(sprintf( |
| 64 | - '<fg=cyan>%s</fg=cyan> = %s', |
|
| 64 | + '<fg=cyan>%s</fg=cyan> = %s', |
|
| 65 | 65 | $variable, |
| 66 | 66 | $this->formatValue($value) |
| 67 | 67 | )); |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | if(! empty($errors)) |
| 154 | 154 | { |
| 155 | 155 | throw new \RuntimeException(sprintf( |
| 156 | - 'Error : a group can not be part of another group (%s)', |
|
| 156 | + 'Error : a group can not be part of another group (%s)', |
|
| 157 | 157 | implode(', ', $errors) |
| 158 | 158 | )); |
| 159 | 159 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | $this->info(sprintf( |
| 102 | - '%d files generated', |
|
| 102 | + '%d files generated', |
|
| 103 | 103 | count($distFiles) |
| 104 | 104 | )); |
| 105 | 105 | } |
@@ -266,8 +266,7 @@ |
||
| 266 | 266 | { |
| 267 | 267 | $formatter = $this->getFormatterForCurrentTargetFile(); |
| 268 | 268 | |
| 269 | - $content = preg_replace_callback(self::VARIABLE_REGEX, function(array $matches) use($environment, $formatter) |
|
| 270 | - { |
|
| 269 | + $content = preg_replace_callback(self::VARIABLE_REGEX, function(array $matches) use($environment, $formatter) { |
|
| 271 | 270 | $value = $this->readValueToInject($matches['variableName'], $environment); |
| 272 | 271 | |
| 273 | 272 | if(is_array($value)) |
@@ -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 | } |
@@ -102,8 +102,8 @@ |
||
| 102 | 102 | private function printHeader() |
| 103 | 103 | { |
| 104 | 104 | $this->output->writeln(sprintf( |
| 105 | - '<comment>%s</comment>', |
|
| 106 | - $this->getLogo() |
|
| 105 | + '<comment>%s</comment>', |
|
| 106 | + $this->getLogo() |
|
| 107 | 107 | )); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $table->enableFormattingTags() |
| 46 | 46 | ->setHeaders(array($environment1, $environment2)) |
| 47 | 47 | ->displayKeys() |
| 48 | - ->setValueRenderingFunction(function($value){ |
|
| 48 | + ->setValueRenderingFunction(function($value) { |
|
| 49 | 49 | return $this->formatValue($value); |
| 50 | 50 | }); |
| 51 | 51 | |
@@ -165,9 +165,9 @@ discard block |
||
| 165 | 165 | foreach($overrides as $variable => $value) |
| 166 | 166 | { |
| 167 | 167 | $logger->info(sprintf( |
| 168 | - 'Override <important>%s</important> with value <important>%s</important>', |
|
| 169 | - $variable, |
|
| 170 | - $value |
|
| 168 | + 'Override <important>%s</important> with value <important>%s</important>', |
|
| 169 | + $variable, |
|
| 170 | + $value |
|
| 171 | 171 | )); |
| 172 | 172 | |
| 173 | 173 | $reader->overrideVariable($variable, $this->filterValue($value)); |
@@ -182,9 +182,9 @@ discard block |
||
| 182 | 182 | foreach($data as $variable => $value) |
| 183 | 183 | { |
| 184 | 184 | $logger->info(sprintf( |
| 185 | - 'Set custom data <important>%s</important> with value <important>%s</important>', |
|
| 186 | - $variable, |
|
| 187 | - $value |
|
| 185 | + 'Set custom data <important>%s</important> with value <important>%s</important>', |
|
| 186 | + $variable, |
|
| 187 | + $value |
|
| 188 | 188 | )); |
| 189 | 189 | |
| 190 | 190 | $reader->setCustomData($variable, $this->filterValue($value)); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | private function processInputs(InputInterface $input) |
| 47 | - { |
|
| 47 | + { |
|
| 48 | 48 | $sourcePath = $input->getArgument('sourcePath'); |
| 49 | 49 | if($sourcePath === null) |
| 50 | 50 | { |