@@ -130,7 +130,7 @@ |
||
| 130 | 130 | ...@@...@@.. |
| 131 | 131 | ...@@....@@. |
| 132 | 132 | |
| 133 | -ASCIIART; |
|
| 133 | +asciiart; |
|
| 134 | 134 | |
| 135 | 135 | $background = 'fg=magenta'; |
| 136 | 136 | $text = 'fg=white'; |
@@ -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 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function setDefaultEnvironment($environment) |
| 42 | 42 | { |
| 43 | - if(! empty($environment) && is_string($environment)) |
|
| 43 | + if( ! empty($environment) && is_string($environment)) |
|
| 44 | 44 | { |
| 45 | 45 | $this->defaultEnvironment = $environment; |
| 46 | 46 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | private function handleCustomData($value) |
| 90 | 90 | { |
| 91 | - if(! is_string($value)) |
|
| 91 | + if( ! is_string($value)) |
|
| 92 | 92 | { |
| 93 | 93 | return $value; |
| 94 | 94 | } |
@@ -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 | ); |
@@ -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 | } |
@@ -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)); |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | { |
| 126 | 126 | $strings = $input->getOption($optionName); |
| 127 | 127 | |
| 128 | - if(! is_array($strings)) |
|
| 128 | + if( ! is_array($strings)) |
|
| 129 | 129 | { |
| 130 | 130 | $strings = array($strings); |
| 131 | 131 | } |
@@ -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 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this->variables = $variables; |
| 23 | 23 | |
| 24 | 24 | $this->externalReader = null; |
| 25 | - if(! empty($externalVariables)) |
|
| 25 | + if( ! empty($externalVariables)) |
|
| 26 | 26 | { |
| 27 | 27 | $this->externalReader = new Reader($externalVariables, array()); |
| 28 | 28 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | private function readVariable($variable, $environment) |
| 42 | 42 | { |
| 43 | - if(! array_key_exists($variable, $this->variables)) |
|
| 43 | + if( ! array_key_exists($variable, $this->variables)) |
|
| 44 | 44 | { |
| 45 | 45 | throw new \RuntimeException(sprintf( |
| 46 | 46 | 'Unknown variable %s', |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | private function processExternal($variable, $environment) |
| 76 | 76 | { |
| 77 | - if(! $this->externalReader instanceof Reader) |
|
| 77 | + if( ! $this->externalReader instanceof Reader) |
|
| 78 | 78 | { |
| 79 | 79 | throw new \RuntimeException(sprintf( |
| 80 | 80 | 'There is no external variables. %s can not be resolve for environment %s', |
@@ -29,14 +29,14 @@ |
||
| 29 | 29 | |
| 30 | 30 | private function parseFormatters($content) |
| 31 | 31 | { |
| 32 | - if(! is_array($content)) |
|
| 32 | + if( ! is_array($content)) |
|
| 33 | 33 | { |
| 34 | 34 | throw new \InvalidArgumentException('Syntax error in profile [formatters]'); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | foreach($content as $name => $rules) |
| 38 | 38 | { |
| 39 | - if(! is_array($rules)) |
|
| 39 | + if( ! is_array($rules)) |
|
| 40 | 40 | { |
| 41 | 41 | throw new \InvalidArgumentException('Syntax error in profile [formatters]'); |
| 42 | 42 | } |