@@ -199,7 +199,7 @@ |
||
199 | 199 | return $this->callback; |
200 | 200 | } |
201 | 201 | |
202 | - return function () { |
|
202 | + return function() { |
|
203 | 203 | }; |
204 | 204 | } |
205 | 205 |
@@ -222,7 +222,7 @@ |
||
222 | 222 | */ |
223 | 223 | private function buildParamFromQueryString(string $queryString): void |
224 | 224 | { |
225 | - $param = \array_map(function ($array_value) { |
|
225 | + $param = \array_map(function($array_value) { |
|
226 | 226 | $tmp = \explode('=', $array_value); |
227 | 227 | $array_value = []; |
228 | 228 | $key = $tmp[0]; |
@@ -134,7 +134,7 @@ |
||
134 | 134 | \session_start([ |
135 | 135 | 'cookie_path' => $this->cookiePath, |
136 | 136 | 'cookie_domain' => $this->cookieDomain, |
137 | - 'cookie_lifetime' => $this->expire,//($this->expire > 0) ? time() + $this->expire : 0, |
|
137 | + 'cookie_lifetime' => $this->expire, //($this->expire > 0) ? time() + $this->expire : 0, |
|
138 | 138 | 'cookie_secure' => $this->cookieSecure, |
139 | 139 | 'cookie_httponly' => $this->cookieHttpOnly, |
140 | 140 | 'cookie_samesite' => $this->cookieSameSite |
@@ -165,7 +165,7 @@ |
||
165 | 165 | |
166 | 166 | //get parameter from constructor |
167 | 167 | //can return error when constructor not declared |
168 | - $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters(); |
|
168 | + $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters(); |
|
169 | 169 | //this should resolve the error when a class without constructor is encountered |
170 | 170 | $parameters = \is_null($constructor) ? [] : $constructor->getParameters(); |
171 | 171 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * @throws \Psr\SimpleCache\InvalidArgumentException |
46 | 46 | * MUST be thrown if the $key string is not a legal value. |
47 | 47 | */ |
48 | - abstract public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool; |
|
48 | + abstract public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Determines whether an item is present in the cache. |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * MUST be thrown if $values is neither an array nor a Traversable, |
114 | 114 | * or if any of the $values are not a legal value. |
115 | 115 | */ |
116 | - public function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool |
|
116 | + public function setMultiple(iterable $values, null | int | DateInterval $ttl = null): bool |
|
117 | 117 | { |
118 | 118 | foreach ($values as $key => $value) { |
119 | 119 | $this->set($key, $value, $ttl); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @throws \Psr\SimpleCache\InvalidArgumentException |
83 | 83 | * MUST be thrown if the $key string is not a legal value. |
84 | 84 | */ |
85 | - public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool |
|
85 | + public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool |
|
86 | 86 | { |
87 | 87 | return $this->memcached->set($key, $value, $this->handleTtl($ttl)); |
88 | 88 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @return int Ttl in seconds. |
98 | 98 | */ |
99 | - private function handleTtl(DateInterval|int|null $ttl): int |
|
99 | + private function handleTtl(DateInterval | int | null $ttl): int |
|
100 | 100 | { |
101 | 101 | if ($ttl == null) { |
102 | 102 | return 0; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * @throws \Psr\SimpleCache\InvalidArgumentException |
115 | 115 | * MUST be thrown if the $key string is not a legal value. |
116 | 116 | */ |
117 | - public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool |
|
117 | + public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool |
|
118 | 118 | { |
119 | 119 | $vTtl = $this->handleTtl($ttl); |
120 | 120 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @return int Ttl in seconds. |
147 | 147 | */ |
148 | - private function handleTtl(DateInterval|int|null $ttl): int |
|
148 | + private function handleTtl(DateInterval | int | null $ttl): int |
|
149 | 149 | { |
150 | 150 | if ($ttl == null) { |
151 | 151 | return 0; |