@@ -37,8 +37,7 @@ discard block |
||
37 | 37 | * @param $key |
38 | 38 | * @throws PhpfastcacheInvalidArgumentException |
39 | 39 | */ |
40 | - public function __construct(CookieDriver $driver, $key) |
|
41 | - { |
|
40 | + public function __construct(CookieDriver $driver, $key) { |
|
42 | 41 | $this->__BaseConstruct($driver, $key); |
43 | 42 | } |
44 | 43 | |
@@ -48,8 +47,7 @@ discard block |
||
48 | 47 | * @return static |
49 | 48 | * @throws PhpfastcacheInvalidArgumentException |
50 | 49 | */ |
51 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
52 | - { |
|
50 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
53 | 51 | if ($driver instanceof CookieDriver) { |
54 | 52 | $this->driver = $driver; |
55 | 53 |
@@ -75,8 +75,7 @@ |
||
75 | 75 | * @return null|array |
76 | 76 | * @throws PhpfastcacheDriverException |
77 | 77 | */ |
78 | - protected function driverRead(CacheItemInterface $item) |
|
79 | - { |
|
78 | + protected function driverRead(CacheItemInterface $item) { |
|
80 | 79 | $this->driverConnect(); |
81 | 80 | $keyword = self::PREFIX . $item->getKey(); |
82 | 81 | $x = isset($_COOKIE[$keyword]) ? json_decode($_COOKIE[$keyword], true) : false; |
@@ -37,8 +37,7 @@ discard block |
||
37 | 37 | * @param $key |
38 | 38 | * @throws PhpfastcacheInvalidArgumentException |
39 | 39 | */ |
40 | - public function __construct(DevnullDriver $driver, $key) |
|
41 | - { |
|
40 | + public function __construct(DevnullDriver $driver, $key) { |
|
42 | 41 | $this->__BaseConstruct($driver, $key); |
43 | 42 | } |
44 | 43 | |
@@ -47,8 +46,7 @@ discard block |
||
47 | 46 | * @return static |
48 | 47 | * @throws PhpfastcacheInvalidArgumentException |
49 | 48 | */ |
50 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
51 | - { |
|
49 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
52 | 50 | if ($driver instanceof DevnullDriver) { |
53 | 51 | $this->driver = $driver; |
54 | 52 |
@@ -37,8 +37,7 @@ discard block |
||
37 | 37 | * @param $key |
38 | 38 | * @throws PhpfastcacheInvalidArgumentException |
39 | 39 | */ |
40 | - public function __construct(ZendDiskDriver $driver, $key) |
|
41 | - { |
|
40 | + public function __construct(ZendDiskDriver $driver, $key) { |
|
42 | 41 | $this->__BaseConstruct($driver, $key); |
43 | 42 | } |
44 | 43 | |
@@ -47,8 +46,7 @@ discard block |
||
47 | 46 | * @return static |
48 | 47 | * @throws PhpfastcacheInvalidArgumentException |
49 | 48 | */ |
50 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
51 | - { |
|
49 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
52 | 50 | if ($driver instanceof ZendDiskDriver) { |
53 | 51 | $this->driver = $driver; |
54 | 52 |
@@ -79,8 +79,7 @@ |
||
79 | 79 | * @param CacheItemInterface $item |
80 | 80 | * @return null|array |
81 | 81 | */ |
82 | - protected function driverRead(CacheItemInterface $item) |
|
83 | - { |
|
82 | + protected function driverRead(CacheItemInterface $item) { |
|
84 | 83 | $data = zend_disk_cache_fetch($item->getKey()); |
85 | 84 | if ($data === false) { |
86 | 85 | return null; |
@@ -37,8 +37,7 @@ discard block |
||
37 | 37 | * @param $key |
38 | 38 | * @throws PhpfastcacheInvalidArgumentException |
39 | 39 | */ |
40 | - public function __construct(MemstaticDriver $driver, $key) |
|
41 | - { |
|
40 | + public function __construct(MemstaticDriver $driver, $key) { |
|
42 | 41 | $this->__BaseConstruct($driver, $key); |
43 | 42 | } |
44 | 43 | |
@@ -47,8 +46,7 @@ discard block |
||
47 | 46 | * @return static |
48 | 47 | * @throws PhpfastcacheInvalidArgumentException |
49 | 48 | */ |
50 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
51 | - { |
|
49 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
52 | 50 | if ($driver instanceof MemstaticDriver) { |
53 | 51 | $this->driver = $driver; |
54 | 52 |
@@ -71,8 +71,7 @@ |
||
71 | 71 | * @param CacheItemInterface $item |
72 | 72 | * @return null|array |
73 | 73 | */ |
74 | - protected function driverRead(CacheItemInterface $item) |
|
75 | - { |
|
74 | + protected function driverRead(CacheItemInterface $item) { |
|
76 | 75 | return $this->staticStack[$item->getKey()] ?? null; |
77 | 76 | } |
78 | 77 |
@@ -67,8 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * @return int|null |
69 | 69 | */ |
70 | - public function getPort() |
|
71 | - { |
|
70 | + public function getPort() { |
|
72 | 71 | return $this->port; |
73 | 72 | } |
74 | 73 |
@@ -37,8 +37,7 @@ discard block |
||
37 | 37 | * @param $key |
38 | 38 | * @throws PhpfastcacheInvalidArgumentException |
39 | 39 | */ |
40 | - public function __construct(CouchbaseDriver $driver, $key) |
|
41 | - { |
|
40 | + public function __construct(CouchbaseDriver $driver, $key) { |
|
42 | 41 | $this->__BaseConstruct($driver, $key); |
43 | 42 | } |
44 | 43 | |
@@ -47,8 +46,7 @@ discard block |
||
47 | 46 | * @return static |
48 | 47 | * @throws PhpfastcacheInvalidArgumentException |
49 | 48 | */ |
50 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
51 | - { |
|
49 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
52 | 50 | if ($driver instanceof CouchbaseDriver) { |
53 | 51 | $this->driver = $driver; |
54 | 52 |