Completed
Push — master ( 95226d...bcd068 )
by Georges
15s queued 12s
created
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.
lib/Phpfastcache/Core/Item/ExtendedCacheItemInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      * @return ExtendedCacheItemInterface
172 172
      * @throws PhpfastcacheInvalidTypeException
173 173
      */
174
-    public function append(array|string $data): ExtendedCacheItemInterface;
174
+    public function append(array | string $data): ExtendedCacheItemInterface;
175 175
 
176 176
     /**
177 177
      * @param array|string $data
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @return ExtendedCacheItemInterface
180 180
      * @throws PhpfastcacheInvalidTypeException
181 181
      */
182
-    public function prepend(array|string $data): ExtendedCacheItemInterface;
182
+    public function prepend(array | string $data): ExtendedCacheItemInterface;
183 183
 
184 184
     /**
185 185
      * Return the data as a well-formatted string.
Please login to merge, or discard this patch.
lib/Phpfastcache/Core/Item/ExtendedCacheItemTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * @throws PhpfastcacheInvalidTypeException
247 247
      */
248
-    public function append(array|string $data): ExtendedCacheItemInterface
248
+    public function append(array | string $data): ExtendedCacheItemInterface
249 249
     {
250 250
         if ($this->data !== null && !\is_string($this->data) && !\is_array($this->data)) {
251 251
             throw new PhpfastcacheInvalidTypeException(\sprintf('Cannot append on a "%s" type.', \gettype($this->data)));
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     /**
264 264
      * @throws PhpfastcacheInvalidTypeException
265 265
      */
266
-    public function prepend(array|string $data): ExtendedCacheItemInterface
266
+    public function prepend(array | string $data): ExtendedCacheItemInterface
267 267
     {
268 268
         if ($this->data !== null && !\is_string($this->data) && !\is_array($this->data)) {
269 269
             throw new PhpfastcacheInvalidTypeException(\sprintf('Cannot prepend on a "%s" type.', \gettype($this->data)));
Please login to merge, or discard this patch.