@@ -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 |
@@ -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 | { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | public function getAllVariables() |
35 | 35 | { |
36 | - $variables = array_map(function($item){ |
|
36 | + $variables = array_map(function($item) { |
|
37 | 37 | return explode(':', $item)[0]; |
38 | 38 | }, array_keys($this->values)); |
39 | 39 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | { |
106 | 106 | $formatter = $this->formatterProvider->getFormatter(); |
107 | 107 | |
108 | - $targetContent = preg_replace_callback('~<%(?P<variableName>[A-Za-z0-9_\.]+)%>~', function(array $matches) use($environment, $formatter){ |
|
108 | + $targetContent = preg_replace_callback('~<%(?P<variableName>[A-Za-z0-9_\.]+)%>~', function(array $matches) use($environment, $formatter) { |
|
109 | 109 | $value = $this->reader->read($matches['variableName'], $environment); |
110 | 110 | return $formatter->format($value); |
111 | 111 | }, $content, -1, $count); |