Passed
Push — master ( c82647...c877fa )
by Georges
11:01
created
lib/Phpfastcache/Core/Pool/DriverBaseTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         ];
184 184
 
185 185
         if ($this->getConfig()->isItemDetailedDate()) {
186
-            $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime();// Always on the latest date
186
+            $wrap[ExtendedCacheItemPoolInterface::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime(); // Always on the latest date
187 187
             /**
188 188
              * If the creation date exists
189 189
              * reuse it else set a new Date
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         }
196 196
 
197 197
         if ($stringifyDate) {
198
-            \array_walk($wrap, static function (mixed &$value, string $key): void {
198
+            \array_walk($wrap, static function(mixed &$value, string $key): void {
199 199
                 if ($value instanceof DateTimeInterface && $key !== ExtendedCacheItemPoolInterface::DRIVER_DATA_WRAPPER_INDEX) {
200 200
                     $value = $value->format(DateTimeInterface::W3C);
201 201
                 }
Please login to merge, or discard this patch.
lib/Phpfastcache/Event/EventManagerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      * @param string[]|string $events
90 90
      * @param callable $callback
91 91
      */
92
-    public function on(array|string $events, callable $callback): void;
92
+    public function on(array | string $events, callable $callback): void;
93 93
 
94 94
     /**
95 95
      * @param string $eventName
Please login to merge, or discard this patch.
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 $expiresAfter = null): mixed
35
+    public function get(string | \Stringable $cacheKey, callable $callback, DateInterval | int $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 $expiresAfter = null): mixed
57
+    public function __invoke(string $cacheKey, callable $callback, DateInterval | int $expiresAfter = null): mixed
58 58
     {
59 59
         return $this->get($cacheKey, $callback, $expiresAfter);
60 60
     }
Please login to merge, or discard this patch.