Passed
Push — v9 ( 38e588...e9ad1b )
by Georges
01:53
created
lib/Phpfastcache/CacheContract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
      * @return mixed
36 36
      * @throws InvalidArgumentException
37 37
      */
38
-    public function get(string $cacheKey, callable $callback, DateInterval|int $expiresAfter = null): mixed
38
+    public function get(string $cacheKey, callable $callback, DateInterval | int $expiresAfter = null): mixed
39 39
     {
40 40
         $cacheItem = $this->cacheInstance->getItem($cacheKey);
41 41
 
42
-        if (! $cacheItem->isHit()) {
42
+        if (!$cacheItem->isHit()) {
43 43
             /*
44 44
             * Parameter $cacheItem will be available as of 8.0.6
45 45
             */
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Firestore/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 
137 137
     protected function decodeFirestoreDocument(array $snapshotData): array
138 138
     {
139
-        return \array_map(static function ($datum) {
139
+        return \array_map(static function($datum) {
140 140
             if ($datum instanceof GoogleTimestamp) {
141 141
                 $date = $datum->get();
142 142
                 if ($date instanceof \DateTimeImmutable) {
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
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @return bool
88 88
      * @throws PhpfastcacheSimpleCacheException
89 89
      */
90
-    public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool
90
+    public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool
91 91
     {
92 92
         try {
93 93
             $cacheItem = $this->internalCacheInstance
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         }
146 146
         try {
147 147
             return \array_map(
148
-                static fn (ExtendedCacheItemInterface $item) => $item->isHit() ? $item->get() : $default,
148
+                static fn(ExtendedCacheItemInterface $item) => $item->isHit() ? $item->get() : $default,
149 149
                 $this->internalCacheInstance->getItems($keys)
150 150
             );
151 151
         } catch (PhpfastcacheInvalidArgumentException $e) {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * @return bool
160 160
      * @throws PhpfastcacheSimpleCacheException
161 161
      */
162
-    public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null): bool
162
+    public function setMultiple(iterable $values, null | int | \DateInterval $ttl = null): bool
163 163
     {
164 164
         try {
165 165
             foreach ($values as $key => $value) {
Please login to merge, or discard this patch.