Passed
Push — main ( 08f4bd...eac196 )
by Sílvio
01:15 queued 17s
created
src/Cacheer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     * @param int|string $ttl
94 94
     * @return bool
95 95
     */
96
-    public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600): bool
96
+    public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600): bool
97 97
     {
98 98
         return $this->mutator->add($cacheKey, $cacheData, $namespace, $ttl);
99 99
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     * @param string|int $ttl
190 190
     * @return CacheDataFormatter|mixed
191 191
     */
192
-    public function getCache(string $cacheKey, string $namespace = '', string|int $ttl = 3600): mixed
192
+    public function getCache(string $cacheKey, string $namespace = '', string | int $ttl = 3600): mixed
193 193
     {
194 194
         return $this->retriever->getCache($cacheKey, $namespace, $ttl);
195 195
     }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     * @param string|int $ttl
203 203
     * @return CacheDataFormatter|mixed
204 204
     */
205
-    public function getMany(array $cacheKeys, string $namespace = '', string|int $ttl = 3600): mixed
205
+    public function getMany(array $cacheKeys, string $namespace = '', string | int $ttl = 3600): mixed
206 206
     {
207 207
         return $this->retriever->getMany($cacheKeys, $namespace, $ttl);
208 208
     }
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     * @param string|int $ttl
252 252
     * @return void
253 253
     */
254
-    public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', string|int $ttl = 3600): void
254
+    public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', string | int $ttl = 3600): void
255 255
     {
256 256
         $this->mutator->putCache($cacheKey, $cacheData, $namespace, $ttl);
257 257
     }
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     * @param string $namespace
278 278
     * @return void
279 279
     */
280
-    public function renewCache(string $cacheKey, string|int $ttl = 3600, string $namespace = ''): void
280
+    public function renewCache(string $cacheKey, string | int $ttl = 3600, string $namespace = ''): void
281 281
     {
282 282
         $this->mutator->renewCache($cacheKey, $ttl, $namespace);
283 283
     }
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     * @param Closure $callback
291 291
     * @return mixed
292 292
     */
293
-    public function remember(string $cacheKey, int|string $ttl, Closure $callback): mixed
293
+    public function remember(string $cacheKey, int | string $ttl, Closure $callback): mixed
294 294
     {
295 295
         return $this->retriever->remember($cacheKey, $ttl, $callback);
296 296
     }
Please login to merge, or discard this patch.