@@ -116,7 +116,7 @@ |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | $this->output->writeln( |
| 119 | - $this->getLogo($this->output->isDecorated()) |
|
| 119 | + $this->getLogo($this->output->isDecorated()) |
|
| 120 | 120 | ); |
| 121 | 121 | } |
| 122 | 122 | |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | { |
| 147 | 147 | $processor->setSystemEnvironment($this->systemEnvironment); |
| 148 | 148 | |
| 149 | - $this->app['logger']->info(sprintf( |
|
| 149 | + $this->app['logger']->info(sprintf( |
|
| 150 | 150 | 'Hydrate <important>system</important> variables with <important>%s</important> values', |
| 151 | 151 | $this->systemEnvironment |
| 152 | 152 | )); |
@@ -197,9 +197,9 @@ discard block |
||
| 197 | 197 | foreach($overrides as $variable => $value) |
| 198 | 198 | { |
| 199 | 199 | $logger->info(sprintf( |
| 200 | - 'Override <important>%s</important> with value <important>%s</important>', |
|
| 201 | - $variable, |
|
| 202 | - $value |
|
| 200 | + 'Override <important>%s</important> with value <important>%s</important>', |
|
| 201 | + $variable, |
|
| 202 | + $value |
|
| 203 | 203 | )); |
| 204 | 204 | |
| 205 | 205 | $value = $this->parseList($value); |
@@ -216,9 +216,9 @@ discard block |
||
| 216 | 216 | foreach($data as $variable => $value) |
| 217 | 217 | { |
| 218 | 218 | $logger->info(sprintf( |
| 219 | - 'Set custom data <important>%s</important> with value <important>%s</important>', |
|
| 220 | - $variable, |
|
| 221 | - $value |
|
| 219 | + 'Set custom data <important>%s</important> with value <important>%s</important>', |
|
| 220 | + $variable, |
|
| 221 | + $value |
|
| 222 | 222 | )); |
| 223 | 223 | |
| 224 | 224 | $reader->setCustomData($variable, $this->filterValue($value)); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $sourcePath = $profile->getSourcePath(); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - if(! is_array($sourcePath)) |
|
| 107 | + if( ! is_array($sourcePath)) |
|
| 108 | 108 | { |
| 109 | 109 | $sourcePath = array($sourcePath); |
| 110 | 110 | } |
@@ -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 | } |
@@ -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 | |
@@ -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 | )); |
@@ -34,11 +34,11 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | $unusedVariables = $processor->getUnusedVariables(); |
| 36 | 36 | |
| 37 | - if(! empty($unusedVariables)) |
|
| 37 | + if( ! empty($unusedVariables)) |
|
| 38 | 38 | { |
| 39 | 39 | $logger = $this->app['logger']; |
| 40 | 40 | |
| 41 | - $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them'). |
|
| 41 | + $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them') . |
|
| 42 | 42 | $logger->warning(sprintf( |
| 43 | 43 | 'Unused variables : %s', |
| 44 | 44 | implode(', ', $unusedVariables) |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $unvaluedVariables = $processor->getUnvaluedVariables(); |
| 52 | 52 | |
| 53 | - if(! empty($unvaluedVariables)) |
|
| 53 | + if( ! empty($unvaluedVariables)) |
|
| 54 | 54 | { |
| 55 | 55 | $logger = $this->app['logger']; |
| 56 | 56 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | if(is_array($value)) |
| 10 | 10 | { |
| 11 | - return array_map(function ($item) { |
|
| 11 | + return array_map(function($item) { |
|
| 12 | 12 | return $this->filterOneValue($item); |
| 13 | 13 | }, $value); |
| 14 | 14 | } |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | private function filterOneValue($value) |
| 20 | 20 | { |
| 21 | - if(! is_string($value)) |
|
| 21 | + if( ! is_string($value)) |
|
| 22 | 22 | { |
| 23 | 23 | return $value; |
| 24 | 24 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | public function getAllVariables() |
| 44 | 44 | { |
| 45 | - $variables = array_map(function($key){ |
|
| 45 | + $variables = array_map(function($key) { |
|
| 46 | 46 | return $this->extractVariableName($key); |
| 47 | 47 | }, array_keys($this->values)); |
| 48 | 48 | |
@@ -240,8 +240,8 @@ discard block |
||
| 240 | 240 | if($status['found'] === false) |
| 241 | 241 | { |
| 242 | 242 | $this->warning(sprintf( |
| 243 | - 'External file %s was not found', |
|
| 244 | - $file |
|
| 243 | + 'External file %s was not found', |
|
| 244 | + $file |
|
| 245 | 245 | )); |
| 246 | 246 | } |
| 247 | 247 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | |
| 295 | 295 | public function getDefaultEnvironmentsForGroups() |
| 296 | 296 | { |
| 297 | - $defaultEnvironments = array(); |
|
| 297 | + $defaultEnvironments = array(); |
|
| 298 | 298 | |
| 299 | 299 | if(isset($this->parsers[self::GROUPS])) |
| 300 | 300 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | public function enableIncludeSupport() |
| 51 | 51 | { |
| 52 | - if(! isset($this->parsers[self::INCLUDES])) |
|
| 52 | + if( ! isset($this->parsers[self::INCLUDES])) |
|
| 53 | 53 | { |
| 54 | 54 | $this->parsers[self::INCLUDES] = new IncludeParser(); |
| 55 | 55 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | public function enableExternalSupport() |
| 61 | 61 | { |
| 62 | - if(! isset($this->parsers[self::EXTERNALS])) |
|
| 62 | + if( ! isset($this->parsers[self::EXTERNALS])) |
|
| 63 | 63 | { |
| 64 | 64 | $this->parsers[self::EXTERNALS] = new ExternalParser(new Parser($this->fs)); |
| 65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | public function enableGroupSupport() |
| 71 | 71 | { |
| 72 | - if(! isset($this->parsers[self::GROUPS])) |
|
| 72 | + if( ! isset($this->parsers[self::GROUPS])) |
|
| 73 | 73 | { |
| 74 | 74 | $this->parsers[self::GROUPS] = new GroupParser(); |
| 75 | 75 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | { |
| 102 | 102 | $files = array($masterFilePath); |
| 103 | 103 | |
| 104 | - while(! empty($files)) |
|
| 104 | + while( ! empty($files)) |
|
| 105 | 105 | { |
| 106 | 106 | foreach($files as $file) |
| 107 | 107 | { |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | private function extractLines($filePath) |
| 153 | 153 | { |
| 154 | - if(! $this->fs->has($filePath)) |
|
| 154 | + if( ! $this->fs->has($filePath)) |
|
| 155 | 155 | { |
| 156 | 156 | throw new \RuntimeException("$filePath does not exist"); |
| 157 | 157 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | private function switchSectionParser($sectionName) |
| 203 | 203 | { |
| 204 | - if(! isset($this->parsers[$sectionName])) |
|
| 204 | + if( ! isset($this->parsers[$sectionName])) |
|
| 205 | 205 | { |
| 206 | 206 | throw new \RuntimeException('Unknown section name ' . $sectionName); |
| 207 | 207 | } |
@@ -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 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | private function hasDuplicatedValues(array $values) |
| 106 | 106 | { |
| 107 | - $duplicatedValues = array_filter(array_count_values($values), function ($counter) { |
|
| 107 | + $duplicatedValues = array_filter(array_count_values($values), function($counter) { |
|
| 108 | 108 | return $counter !== 1; |
| 109 | 109 | }); |
| 110 | 110 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | $errors = array_intersect($allEnvironments, array_keys($this->groups)); |
| 152 | 152 | |
| 153 | - if(! empty($errors)) |
|
| 153 | + if( ! empty($errors)) |
|
| 154 | 154 | { |
| 155 | 155 | throw new \RuntimeException(sprintf( |
| 156 | 156 | 'Error : a group can not be part of another group (%s)', |