@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | return false; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if (is_callable([ $this, $key ])) { |
|
| 154 | + if (is_callable([$this, $key])) { |
|
| 155 | 155 | $value = $this->{$key}(); |
| 156 | 156 | } else { |
| 157 | 157 | if (!isset($this->{$key})) { |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | return null; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - if (is_callable([ $this, $key ])) { |
|
| 201 | + if (is_callable([$this, $key])) { |
|
| 202 | 202 | return $this->{$key}(); |
| 203 | 203 | } else { |
| 204 | 204 | if (isset($this->{$key})) { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $setter = 'set'.ucfirst($key); |
| 247 | - if (is_callable([ $this, $setter ])) { |
|
| 247 | + if (is_callable([$this, $setter])) { |
|
| 248 | 248 | $this->{$setter}($value); |
| 249 | 249 | } else { |
| 250 | 250 | $this->{$key} = $value; |
@@ -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, |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | return false; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if (is_callable([ $this, $key ])) { |
|
| 154 | + if (is_callable([$this, $key])) { |
|
| 155 | 155 | $value = $this->{$key}(); |
| 156 | 156 | } else { |
| 157 | 157 | if (!isset($this->{$key})) { |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | return null; |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | - if (is_callable([ $this, $key ])) { |
|
| 195 | + if (is_callable([$this, $key])) { |
|
| 196 | 196 | return $this->{$key}(); |
| 197 | 197 | } else { |
| 198 | 198 | if (isset($this->{$key})) { |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | $setter = 'set'.ucfirst($key); |
| 237 | - if (is_callable([ $this, $setter ])) { |
|
| 237 | + if (is_callable([$this, $setter])) { |
|
| 238 | 238 | $this->{$setter}($value); |
| 239 | 239 | } else { |
| 240 | 240 | $this->{$key} = $value; |