Passed
Push — v9 ( e84ae2...80c47f )
by Georges
03:02
created
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 mixed[]|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/Pool/DriverBaseTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @var object|array<mixed>|null
52 52
      */
53
-    protected object|array|null $instance;
53
+    protected object | array | null $instance;
54 54
 
55 55
     protected string $driverName;
56 56
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         ];
156 156
 
157 157
         if ($this->getConfig()->isItemDetailedDate()) {
158
-            $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime();// Always on the latest date
158
+            $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime(); // Always on the latest date
159 159
             /**
160 160
              * If the creation date exists
161 161
              * reuse it else set a new Date
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         }
168 168
 
169 169
         if ($stringifyDate) {
170
-            \array_walk($wrap, static function (mixed &$value, string $key): void {
170
+            \array_walk($wrap, static function(mixed &$value, string $key): void {
171 171
                 if ($value instanceof DateTimeInterface && $key !== ExtendedCacheItemPoolInterface::DRIVER_DATA_WRAPPER_INDEX) {
172 172
                     $value = $value->format(DateTimeInterface::W3C);
173 173
                 }
Please login to merge, or discard this patch.
lib/Phpfastcache/Core/Pool/IO/IOHelperTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @return string
75 75
      * @throws PhpfastcacheIOException
76 76
      */
77
-    protected function getFilePath(string|bool $keyword, bool $skip = false): string
77
+    protected function getFilePath(string | bool $keyword, bool $skip = false): string
78 78
     {
79 79
         $path = $this->getPath();
80 80
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
             throw new PhpfastcacheIOException("Cannot read file located at: $file");
246 246
         }
247 247
         if (\function_exists('file_get_contents')) {
248
-            return (string)\file_get_contents($file);
248
+            return (string) \file_get_contents($file);
249 249
         }
250 250
 
251 251
         $string = '';
@@ -304,6 +304,6 @@  discard block
 block discarded – undo
304 304
             }
305 305
         }
306 306
 
307
-        return (bool)($octetWritten ?? false);
307
+        return (bool) ($octetWritten ?? false);
308 308
     }
309 309
 }
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.
lib/Phpfastcache/Drivers/Arangodb/Config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *  UNIX ENDPOINT: unix:///tmp/arangodb.sock
36 36
      *  Failover ENDPOINTS: ['tcp://127.0.0.1:8529', 'tcp://127.0.0.1:8529']
37 37
      */
38
-    protected string|array $endpoint = 'tcp://127.0.0.1:8529';
38
+    protected string | array $endpoint = 'tcp://127.0.0.1:8529';
39 39
 
40 40
     // enum{'Close', 'Keep-Alive'}
41 41
     protected string $connection = 'Keep-Alive';
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @return string|array<string>
97 97
      */
98
-    public function getEndpoint(): string|array
98
+    public function getEndpoint(): string | array
99 99
     {
100 100
         return $this->endpoint;
101 101
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @return $this
106 106
      * @throws PhpfastcacheLogicException
107 107
      */
108
-    public function setEndpoint(string|array $endpoint): Config
108
+    public function setEndpoint(string | array $endpoint): Config
109 109
     {
110 110
         $this->enforceLockedProperty(__FUNCTION__);
111 111
         $this->endpoint = $endpoint;
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
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      */
142 142
     protected function decodeFirestoreDocument(array $snapshotData): array
143 143
     {
144
-        return \array_map(static function ($datum) {
144
+        return \array_map(static function($datum) {
145 145
             if ($datum instanceof GoogleTimestamp) {
146 146
                 $date = $datum->get();
147 147
                 if ($date instanceof \DateTimeImmutable) {
Please login to merge, or discard this patch.