Passed
Push — master ( 588e8f...7c91d4 )
by Khoa
06:06 queued 04:02
created
lib/Phpfastcache/CacheContract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @throws InvalidArgumentException
34 34
      */
35
-    public function get(string|\Stringable $cacheKey, callable $callback, DateInterval|int|null $expiresAfter = null): mixed
35
+    public function get(string | \Stringable $cacheKey, callable $callback, DateInterval | int | null $expiresAfter = null): mixed
36 36
     {
37 37
         $cacheItem = $this->cacheInstance->getItem((string) $cacheKey);
38 38
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @throws InvalidArgumentException
56 56
      */
57
-    public function __invoke(string $cacheKey, callable $callback, DateInterval|int|null $expiresAfter = null): mixed
57
+    public function __invoke(string $cacheKey, callable $callback, DateInterval | int | null $expiresAfter = null): mixed
58 58
     {
59 59
         return $this->get($cacheKey, $callback, $expiresAfter);
60 60
     }
Please login to merge, or discard this patch.
lib/Phpfastcache/Helper/Psr16Adapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @throws PhpfastcacheDriverException
50 50
      * @throws PhpfastcacheDriverNotFoundException
51 51
      */
52
-    public function __construct(string|ExtendedCacheItemPoolInterface $driver, ?ConfigurationOptionInterface $config = null)
52
+    public function __construct(string | ExtendedCacheItemPoolInterface $driver, ?ConfigurationOptionInterface $config = null)
53 53
     {
54 54
         if ($driver instanceof ExtendedCacheItemPoolInterface) {
55 55
             if ($config !== null) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @return bool
89 89
      * @throws PhpfastcacheSimpleCacheException
90 90
      */
91
-    public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool
91
+    public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool
92 92
     {
93 93
         try {
94 94
             $cacheItem = $this->internalCacheInstance
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @return bool
161 161
      * @throws PhpfastcacheSimpleCacheException
162 162
      */
163
-    public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null): bool
163
+    public function setMultiple(iterable $values, null | int | \DateInterval $ttl = null): bool
164 164
     {
165 165
         try {
166 166
             foreach ($values as $key => $value) {
Please login to merge, or discard this patch.