Completed
Push — final ( 23c54c...9adf42 )
by Georges
02:49 queued 24s
created
src/phpFastCache/CacheManager.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.