Passed
Push — v7 ( 338244...de4ac6 )
by Georges
01:40
created
lib/Phpfastcache/Drivers/Memcache/Driver.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
                  */
153 153
                 if(!empty($server[ 'path' ]) && !$this->instance->addServer($server[ 'path' ], 0)){
154 154
                     $this->fallback = true;
155
-                }else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) {
155
+                } else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) {
156 156
                     $this->fallback = true;
157 157
                 }
158 158
 
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Couchbase/Driver.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
         if ($item instanceof Item) {
135 135
             try{
136 136
                 return (bool)$this->getBucket()->remove($item->getEncodedKey());
137
-            }catch (\Couchbase\Exception $e){
137
+            } catch (\Couchbase\Exception $e){
138 138
                 return $e->getCode() === COUCHBASE_KEY_ENOENT;
139 139
             }
140 140
         }
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Memcached/Driver.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
                  */
153 153
                 if(!empty($server[ 'path' ]) && !$this->instance->addServer($server[ 'path' ], 0)){
154 154
                     $this->fallback = true;
155
-                }else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) {
155
+                } else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) {
156 156
                     $this->fallback = true;
157 157
                 }
158 158
 
Please login to merge, or discard this patch.
lib/Phpfastcache/Config/ConfigurationOption.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
             if(array_key_exists($property, $array)){
106 106
                 $this->$property = &$array[ $property ];
107
-            }else{
107
+            } else{
108 108
                 $array[ $property ] = &$this->$property;
109 109
             }
110 110
         }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                      */
122 122
                     $value = $this->{lcfirst(substr($method, 3))};
123 123
                     $this->{$method}($value);
124
-                }catch(\TypeError $e){
124
+                } catch(\TypeError $e){
125 125
                     $typeHintGot = \is_object($value) ? \get_class($value) : \gettype($value);
126 126
                     $reflectionMethod = new \ReflectionMethod($this, $method);
127 127
                     $parameter = $reflectionMethod->getParameters()[0] ?? null;
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Predis/Driver.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
               'scheme' => 'unix',
61 61
               'path' =>  $this->getConfig()->getPath()
62 62
             ]);
63
-        }else{
63
+        } else{
64 64
             $this->instance = new PredisClient($this->getConfig()->getPredisConfigArray());
65 65
         }
66 66
 
Please login to merge, or discard this patch.
lib/Phpfastcache/CacheManager.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
               'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead',
118 118
               E_USER_DEPRECATED
119 119
             );
120
-        }elseif ($config === null){
120
+        } elseif ($config === null){
121 121
             $config = self::getDefaultConfig();
122
-        }else if(!($config instanceof ConfigurationOption)){
122
+        } else if(!($config instanceof ConfigurationOption)){
123 123
             throw new PhpfastcacheInvalidArgumentException(\sprintf('Unsupported config type: %s', gettype($config)));
124 124
         }
125 125
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     {
405 405
         if(!empty(self::$driverCustoms[$driverName])){
406 406
             $driverClass = self::$driverCustoms[$driverName];
407
-        }else if(!empty(self::$driverOverrides[$driverName])){
407
+        } else if(!empty(self::$driverOverrides[$driverName])){
408 408
             $driverClass = self::$driverOverrides[$driverName];
409 409
         } else{
410 410
             $driverClass = self::getNamespacePath() . $driverName . '\Driver';
Please login to merge, or discard this patch.