@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use ArrayObject; |
| 15 | 15 | use OutOfRangeException; |
| 16 | -use BadMethodCallException; |
|
| 17 | 16 | use BrightNucleus\Config\ConfigInterface; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function hasKey($key) |
| 52 | 52 | { |
| 53 | - return array_key_exists($key, (array)$this); |
|
| 53 | + return array_key_exists($key, (array) $this); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | if ( ! $this->hasKey($key)) { |
| 68 | 68 | throw new OutOfRangeException(sprintf(_('The configuration key %1$s does not exist.'), |
| 69 | - (string)$key)); |
|
| 69 | + (string) $key)); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | return $this[$key]; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function getKeys() |
| 82 | 82 | { |
| 83 | - return array_keys((array)$this); |
|
| 83 | + return array_keys((array) $this); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | return $this->defined->getArrayCopy(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - return (array)$this->defined; |
|
| 65 | + return (array) $this->defined; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | return $this->defaults->getArrayCopy(); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - return (array)$this->defaults; |
|
| 85 | + return (array) $this->defaults; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -102,6 +102,6 @@ discard block |
||
| 102 | 102 | return $this->required->getArrayCopy(); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - return (array)$this->required; |
|
| 105 | + return (array) $this->required; |
|
| 106 | 106 | } |
| 107 | 107 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | if ( ! file_exists($config)) { |
| 119 | 119 | throw new RuntimeException(sprintf( |
| 120 | 120 | _('Non-existing configuration source: %1$s'), |
| 121 | - (string)$config |
|
| 121 | + (string) $config |
|
| 122 | 122 | )); |
| 123 | 123 | } |
| 124 | 124 | |
@@ -137,13 +137,13 @@ discard block |
||
| 137 | 137 | } catch (Exception $exception) { |
| 138 | 138 | throw new RuntimeException(sprintf( |
| 139 | 139 | _('Loading from configuration source %1$s failed. Reason: %2$s'), |
| 140 | - (string)$configString, |
|
| 141 | - (string)$exception->getMessage() |
|
| 140 | + (string) $configString, |
|
| 141 | + (string) $exception->getMessage() |
|
| 142 | 142 | )); |
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | - return (array)$config; |
|
| 146 | + return (array) $config; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |