Passed
Push — master ( 0d207d...0ce24c )
by Eric
05:53
created
src/Arrays.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @uses ArrayAccess<TKey, TValue>
88 88
      */
89
-    public static function get(array|ArrayAccess $array, int|string $key, mixed $default = null): mixed
89
+    public static function get(array | ArrayAccess $array, int | string $key, mixed $default = null): mixed
90 90
     {
91 91
         if (Arrays::keyExists($array, $key)) {
92 92
             return $array[$key];
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @template TKey
166 166
      * @template TValue
167 167
      */
168
-    public static function interlace(array ...$args): array|false
168
+    public static function interlace(array ...$args): array | false
169 169
     {
170 170
         $numArgs = \count($args);
171 171
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      *
217 217
      * @uses ArrayAccess<TKey, TValue>
218 218
      */
219
-    public static function keyExists(array|ArrayAccess $array, int|string $key): bool
219
+    public static function keyExists(array | ArrayAccess $array, int | string $key): bool
220 220
     {
221 221
         if ($array instanceof ArrayAccess) {
222 222
             return $array->offsetExists($key);
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      *
290 290
      * @uses ArrayAccess<TKey, TValue>
291 291
      */
292
-    public static function set(array|ArrayAccess &$array, null|int|string $key, mixed $value): void
292
+    public static function set(array | ArrayAccess & $array, null | int | string $key, mixed $value): void
293 293
     {
294 294
         if ($key === null) {
295 295
             $array = $value;
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      * @template TKey of (int|string)
312 312
      * @template TValue
313 313
      */
314
-    public static function valueExists(array $array, int|string $value): bool
314
+    public static function valueExists(array $array, int | string $value): bool
315 315
     {
316 316
         return \in_array($value, $array, true);
317 317
     }
Please login to merge, or discard this patch.