Passed
Pull Request — final (#566)
by Georges
03:53
created
src/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.
src/phpFastCache/Drivers/Predis/Driver.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
              */
81 81
             if($ttl <= 0){
82 82
                 return $this->instance->expire($item->getKey(), 0);
83
-            }else{
83
+            } else{
84 84
                 return $this->instance->setex($item->getKey(), $ttl, $this->encode($this->driverPreWrap($item)));
85 85
             }
86 86
         } else {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
               'scheme' => 'unix',
154 154
               'path' =>  $path
155 155
             ]);
156
-        }else{
156
+        } else{
157 157
             $this->instance = new PredisClient($config);
158 158
         }
159 159
 
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Redis/Driver.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
              */
77 77
             if($ttl <= 0){
78 78
                 return $this->instance->expire($item->getKey(), 0);
79
-            }else{
79
+            } else{
80 80
                 return $this->instance->setex($item->getKey(), $ttl, $this->encode($this->driverPreWrap($item)));
81 81
             }
82 82
         } else {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
              */
147 147
             if($path){
148 148
                 $isConnected = $this->instance->connect($path);
149
-            }else{
149
+            } else{
150 150
                 $isConnected = $this->instance->connect($host, (int)$port, (int)$timeout);
151 151
             }
152 152
 
Please login to merge, or discard this patch.
src/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.