@@ -60,7 +60,7 @@ |
||
| 60 | 60 | return $this->loadYamlFile($path); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - $validConfigExts = [ 'ini', 'json', 'php', 'yml' ]; |
|
| 63 | + $validConfigExts = ['ini', 'json', 'php', 'yml']; |
|
| 64 | 64 | throw new InvalidArgumentException(sprintf( |
| 65 | 65 | 'Unsupported file format for "%s"; must be one of "%s"', |
| 66 | 66 | $path, |
@@ -152,9 +152,9 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | $getter = 'get'.ucfirst($key); |
| 155 | - if (is_callable([ $this, $getter])) { |
|
| 155 | + if (is_callable([$this, $getter])) { |
|
| 156 | 156 | $value = $this->{$getter}(); |
| 157 | - } elseif (is_callable([ $this, $key ])) { |
|
| 157 | + } elseif (is_callable([$this, $key])) { |
|
| 158 | 158 | $value = $this->{$key}(); |
| 159 | 159 | } else { |
| 160 | 160 | if (!isset($this->{$key})) { |
@@ -196,9 +196,9 @@ discard block |
||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | $getter = 'get'.ucfirst($key); |
| 199 | - if (is_callable([ $this, $getter])) { |
|
| 199 | + if (is_callable([$this, $getter])) { |
|
| 200 | 200 | return $this->{$getter}(); |
| 201 | - } elseif (is_callable([ $this, $key ])) { |
|
| 201 | + } elseif (is_callable([$this, $key])) { |
|
| 202 | 202 | return $this->{$key}(); |
| 203 | 203 | } else { |
| 204 | 204 | if (isset($this->{$key})) { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | $setter = 'set'.ucfirst($key); |
| 243 | - if (is_callable([ $this, $setter ])) { |
|
| 243 | + if (is_callable([$this, $setter])) { |
|
| 244 | 244 | $this->{$setter}($value); |
| 245 | 245 | } else { |
| 246 | 246 | $this->{$key} = $value; |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | |
| 154 | 154 | $getter = 'get'.ucfirst($key); |
| 155 | 155 | if (is_callable([ $this, $getter])) { |
| 156 | - $value = $this->{$getter}(); |
|
| 156 | + $value = $this->{$getter}(); |
|
| 157 | 157 | } else if (is_callable([ $this, $key ])) { |
| 158 | 158 | $value = $this->{$key}(); |
| 159 | 159 | } else { |
@@ -152,9 +152,9 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | $getter = 'get'.ucfirst($key); |
| 155 | - if (is_callable([ $this, $getter])) { |
|
| 155 | + if (is_callable([$this, $getter])) { |
|
| 156 | 156 | $value = $this->{$getter}(); |
| 157 | - } else if (is_callable([ $this, $key ])) { |
|
| 157 | + } else if (is_callable([$this, $key])) { |
|
| 158 | 158 | $value = $this->{$key}(); |
| 159 | 159 | } else { |
| 160 | 160 | if (!isset($this->{$key})) { |
@@ -202,9 +202,9 @@ discard block |
||
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | $getter = 'get'.ucfirst($key); |
| 205 | - if (is_callable([ $this, $getter])) { |
|
| 205 | + if (is_callable([$this, $getter])) { |
|
| 206 | 206 | return $this->{$getter}(); |
| 207 | - } else if (is_callable([ $this, $key ])) { |
|
| 207 | + } else if (is_callable([$this, $key])) { |
|
| 208 | 208 | return $this->{$key}(); |
| 209 | 209 | } else { |
| 210 | 210 | if (isset($this->{$key})) { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | $setter = 'set'.ucfirst($key); |
| 253 | - if (is_callable([ $this, $setter ])) { |
|
| 253 | + if (is_callable([$this, $setter])) { |
|
| 254 | 254 | $this->{$setter}($value); |
| 255 | 255 | } else { |
| 256 | 256 | $this->{$key} = $value; |