@@ -70,9 +70,9 @@ discard block |
||
| 70 | 70 | throw new PhpfastcacheDriverCheckException(\sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - try{ |
|
| 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(), |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | protected function decode($value) |
| 143 | 143 | { |
| 144 | - return \unserialize((string)$value); |
|
| 144 | + return \unserialize((string) $value); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | * that has slow performances |
| 282 | 282 | */ |
| 283 | 283 | |
| 284 | - $tagsItem->set(\array_merge((array)$data, [$item->getKey() => $expTimestamp])); |
|
| 284 | + $tagsItem->set(\array_merge((array) $data, [$item->getKey() => $expTimestamp])); |
|
| 285 | 285 | |
| 286 | 286 | /** |
| 287 | 287 | * Set the expiration date |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | $tagsItems = $this->getItems($this->getTagKeys($item->getRemovedTags())); |
| 304 | 304 | |
| 305 | 305 | foreach ($tagsItems as $tagsItem) { |
| 306 | - $data = (array)$tagsItem->get(); |
|
| 306 | + $data = (array) $tagsItem->get(); |
|
| 307 | 307 | |
| 308 | 308 | unset($data[$item->getKey()]); |
| 309 | 309 | $tagsItem->set($data); |
@@ -72,7 +72,7 @@ |
||
| 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(), |