@@ -88,7 +88,7 @@ |
||
88 | 88 | public static function getLoader($loaderClass) |
89 | 89 | { |
90 | 90 | try { |
91 | - if (! array_key_exists($loaderClass, static::$loaderInstances)) { |
|
91 | + if ( ! array_key_exists($loaderClass, static::$loaderInstances)) { |
|
92 | 92 | static::$loaderInstances[$loaderClass] = new $loaderClass; |
93 | 93 | } |
94 | 94 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | */ |
87 | 87 | protected function validateUri($uri) |
88 | 88 | { |
89 | - if (! is_readable($uri)) { |
|
89 | + if ( ! is_readable($uri)) { |
|
90 | 90 | throw new FailedToLoadConfigException( |
91 | 91 | sprintf( |
92 | 92 | _('The requested PHP config file "%1$s" does not exist or is not readable.'), |
@@ -48,11 +48,11 @@ |
||
48 | 48 | try { |
49 | 49 | $file = array_pop($files); |
50 | 50 | |
51 | - if (! is_readable($file)) { |
|
51 | + if ( ! is_readable($file)) { |
|
52 | 52 | continue; |
53 | 53 | } |
54 | 54 | |
55 | - $data = (array)Loader::load($file); |
|
55 | + $data = (array) Loader::load($file); |
|
56 | 56 | |
57 | 57 | $config = static::createFromArray($data); |
58 | 58 |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $this->validator = $validator; |
84 | 84 | |
85 | 85 | // Make sure $config is either a string or array. |
86 | - if (! (is_string($config) || is_array($config))) { |
|
86 | + if ( ! (is_string($config) || is_array($config))) { |
|
87 | 87 | throw new InvalidConfigurationSourceException( |
88 | 88 | sprintf( |
89 | 89 | _('Invalid configuration source: %1$s'), |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | // Finally, validate the resulting config. |
116 | - if (! $this->isValid()) { |
|
116 | + if ( ! $this->isValid()) { |
|
117 | 117 | throw new InvalidConfigException( |
118 | 118 | sprintf( |
119 | 119 | _('ConfigInterface file is not valid: %1$s'), |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | protected function resolveOptions($config) |
154 | 154 | { |
155 | - if (! $this->schema) { |
|
155 | + if ( ! $this->schema) { |
|
156 | 156 | return $config; |
157 | 157 | } |
158 | 158 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $defaults = $this->schema->getDefaultOptions(); |
194 | 194 | $required = $this->schema->getRequiredOptions(); |
195 | 195 | |
196 | - if (! $defined && ! $defaults && ! $required) { |
|
196 | + if ( ! $defined && ! $defaults && ! $required) { |
|
197 | 197 | return false; |
198 | 198 | } |
199 | 199 |