@@ -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 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | private function checkFilenameIsValid($filename) |
28 | 28 | { |
29 | - if(! preg_match('~.*\.conf$~', $filename)) |
|
29 | + if( ! preg_match('~.*\.conf$~', $filename)) |
|
30 | 30 | { |
31 | 31 | $this->triggerError("$filename is not a valid file name", 'Invalid dependency'); |
32 | 32 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | if($verbosity <= $this->output->getVerbosity()) |
44 | 44 | { |
45 | - if(! is_array($messages)) |
|
45 | + if( ! is_array($messages)) |
|
46 | 46 | { |
47 | 47 | $messages = array($messages); |
48 | 48 | } |
@@ -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 | } |
@@ -154,7 +154,7 @@ |
||
154 | 154 | |
155 | 155 | $this['vcs'] = $this['git']; |
156 | 156 | |
157 | - $this['vcsHandler'] = $this->protect(function (Vcs $vcs) { |
|
157 | + $this['vcsHandler'] = $this->protect(function(Vcs $vcs) { |
|
158 | 158 | $handler = new VcsHandler($vcs, $this['finder']); |
159 | 159 | |
160 | 160 | $handler->setLogger($this['logger']) |
@@ -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 |
@@ -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 | } |
@@ -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 |