@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |