Passed
Pull Request — master (#688)
by
unknown
02:29
created
lib/Phpfastcache/Core/Pool/DriverBaseTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         try{
74 74
             $this->driverConnect();
75
-        }catch(\Exception $e){
75
+        } catch(\Exception $e){
76 76
             throw new PhpfastcacheDriverConnectException(\sprintf(
77 77
                 self::DRIVER_CONNECT_FAILURE,
78 78
                 $this->getDriverName(),
Please login to merge, or discard this patch.
lib/Phpfastcache/Core/Item/ItemBaseTrait.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,16 +157,14 @@
 block discarded – undo
157 157
              */
158 158
             $this->eventManager->dispatch('CacheItemExpireAt', $this, $expiration);
159 159
             $this->expirationDate = $expiration;
160
-        }
161
-        elseif(is_array($expiration) && key_exists("date", $expiration)
160
+        } elseif(is_array($expiration) && key_exists("date", $expiration)
162 161
             && key_exists("timezone_type", $expiration) && key_exists("timezone", $expiration)
163 162
         ){
164 163
             /**
165 164
              * Hack for Zend Server and PhpfastcacheInvalidArgumentException $expiration must be an object implementing the DateTimeInterface got: array
166 165
              */
167 166
             \DateTime::__set_state($expiration);
168
-        }
169
-        else
167
+        } else
170 168
         {
171 169
             throw new PhpfastcacheInvalidArgumentException('$expiration must be an object implementing the DateTimeInterface got: ' . \gettype($expiration));
172 170
         }
Please login to merge, or discard this patch.