Passed
Pull Request — main (#48)
by Sílvio
03:09
created
src/Cacheer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     * @param int|string $ttl
87 87
     * @return bool
88 88
     */
89
-    public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600)
89
+    public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600)
90 90
     {
91 91
         return $this->mutator->add($cacheKey, $cacheData, $namespace, $ttl);
92 92
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     * @param string|int $ttl
183 183
     * @return CacheDataFormatter|mixed
184 184
     */
185
-    public function getCache(string $cacheKey, string $namespace = '', string|int $ttl = 3600)
185
+    public function getCache(string $cacheKey, string $namespace = '', string | int $ttl = 3600)
186 186
     {
187 187
         return $this->retriever->getCache($cacheKey, $namespace, $ttl);
188 188
     }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     * @param string|int $ttl
196 196
     * @return CacheDataFormatter|mixed
197 197
     */
198
-    public function getMany(array $cacheKeys, string $namespace = '', string|int $ttl = 3600)
198
+    public function getMany(array $cacheKeys, string $namespace = '', string | int $ttl = 3600)
199 199
     {
200 200
         return $this->retriever->getMany($cacheKeys, $namespace, $ttl);
201 201
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     * @param string|int $ttl
245 245
     * @return void
246 246
     */
247
-    public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', string|int $ttl = 3600): void
247
+    public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', string | int $ttl = 3600): void
248 248
     {
249 249
         $this->mutator->putCache($cacheKey, $cacheData, $namespace, $ttl);
250 250
     }
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     * @param string $namespace
271 271
     * @return void
272 272
     */
273
-    public function renewCache(string $cacheKey, string|int $ttl = 3600, string $namespace = ''): void
273
+    public function renewCache(string $cacheKey, string | int $ttl = 3600, string $namespace = ''): void
274 274
     {
275 275
         $this->mutator->renewCache($cacheKey, $ttl, $namespace);
276 276
     }
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     * @param Closure $callback
284 284
     * @return mixed
285 285
     */
286
-    public function remember(string $cacheKey, int|string $ttl, Closure $callback)
286
+    public function remember(string $cacheKey, int | string $ttl, Closure $callback)
287 287
     {
288 288
         return $this->retriever->remember($cacheKey, $ttl, $callback);
289 289
     }
Please login to merge, or discard this patch.