@@ -61,7 +61,7 @@ |
||
61 | 61 | if(! isset($this->defaultEnvironmentsForGroups[$environment])) |
62 | 62 | { |
63 | 63 | throw new \RuntimeException(sprintf( |
64 | - 'Group can not be used as environment (try with group %s detected)', |
|
64 | + 'Group can not be used as environment (try with group %s detected)', |
|
65 | 65 | $environment |
66 | 66 | )); |
67 | 67 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $this->variables = $variables; |
26 | 26 | |
27 | 27 | $this->externalReader = null; |
28 | - if(! empty($externalVariables)) |
|
28 | + if( ! empty($externalVariables)) |
|
29 | 29 | { |
30 | 30 | $this->externalReader = new Reader($externalVariables, array(), $groups); |
31 | 31 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | if(in_array($environment, $this->groupNames)) |
60 | 60 | { |
61 | - if(! isset($this->defaultEnvironmentsForGroups[$environment])) |
|
61 | + if( ! isset($this->defaultEnvironmentsForGroups[$environment])) |
|
62 | 62 | { |
63 | 63 | throw new \RuntimeException(sprintf( |
64 | 64 | 'Group can not be used as environment (try with group %s detected)', |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | private function accessVariable($variableName) |
103 | 103 | { |
104 | - if(! array_key_exists($variableName, $this->variables)) |
|
104 | + if( ! array_key_exists($variableName, $this->variables)) |
|
105 | 105 | { |
106 | 106 | throw new \RuntimeException(sprintf( |
107 | 107 | 'Unknown variable %s', |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | private function processExternal($variable, $environment) |
130 | 130 | { |
131 | - if(! $this->externalReader instanceof Reader) |
|
131 | + if( ! $this->externalReader instanceof Reader) |
|
132 | 132 | { |
133 | 133 | throw new \RuntimeException(sprintf( |
134 | 134 | '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 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | { |
50 | 50 | if($value === '<string>') |
51 | 51 | { |
52 | - $result = function ($value) use ($result) { |
|
52 | + $result = function($value) use ($result) { |
|
53 | 53 | return str_replace('<string>', $value, $result); |
54 | 54 | }; |
55 | 55 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -42,13 +42,13 @@ |
||
42 | 42 | |
43 | 43 | if($this->vcs->isTracked($targetFile)) |
44 | 44 | { |
45 | - $this->logger->info("Untrack $targetFile"); |
|
45 | + $this->logger->info("untrack $targetFile"); |
|
46 | 46 | $this->vcs->untrackFile($targetFile); |
47 | 47 | } |
48 | 48 | |
49 | 49 | if($this->vcs->isIgnored($targetFile) === false) |
50 | 50 | { |
51 | - $this->logger->info("Ignore $targetFile"); |
|
51 | + $this->logger->info("ignore $targetFile"); |
|
52 | 52 | $this->vcs->ignoreFile($targetFile); |
53 | 53 | } |
54 | 54 | } |
@@ -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 |
@@ -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 |