@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | try{ |
198 | 198 | self::$instances[ $instance ] = new $class($config); |
199 | 199 | self::$instances[ $instance ]->setEventManager(EventManager::getInstance()); |
200 | - }catch(phpFastCacheDriverCheckException $e){ |
|
200 | + } catch(phpFastCacheDriverCheckException $e){ |
|
201 | 201 | if($config['fallback']){ |
202 | 202 | try{ |
203 | 203 | $fallback = self::standardizeDriverName($config['fallback']); |
@@ -206,13 +206,13 @@ discard block |
||
206 | 206 | self::$instances[ $instance ] = new $class($config); |
207 | 207 | self::$instances[ $instance ]->setEventManager(EventManager::getInstance()); |
208 | 208 | trigger_error(sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver, $fallback), E_USER_WARNING); |
209 | - }else{ |
|
209 | + } else{ |
|
210 | 210 | throw new phpFastCacheInvalidConfigurationException('The fallback driver cannot be the same than the default driver', 0, $e); |
211 | 211 | } |
212 | - }catch (phpFastCacheInvalidArgumentException $e){ |
|
212 | + } catch (phpFastCacheInvalidArgumentException $e){ |
|
213 | 213 | throw new phpFastCacheInvalidConfigurationException('Invalid fallback driver configuration', 0, $e); |
214 | 214 | } |
215 | - }else{ |
|
215 | + } else{ |
|
216 | 216 | throw new phpFastCacheDriverCheckException($e->getMessage(), $e->getCode(), $e); |
217 | 217 | } |
218 | 218 | } |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | self::$config = array_merge(self::$config, $name); |
328 | 328 | } else if (is_string($name)){ |
329 | 329 | self::$config[ $name ] = $value; |
330 | - }else{ |
|
330 | + } else{ |
|
331 | 331 | throw new phpFastCacheInvalidArgumentException('Invalid variable type: $name'); |
332 | 332 | } |
333 | 333 | } |