Passed
Push — master ( 8e66a0...4612fd )
by Eric
04:43 queued 02:55
created
src/Numbers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param float|int $min    The minimum.
70 70
      * @param float|int $max    The maximum.
71 71
      */
72
-    public static function inside(float|int $number, float|int $min, float|int $max): bool
72
+    public static function inside(float | int $number, float | int $min, float | int $max): bool
73 73
     {
74 74
         return ($number >= $min && $number <= $max);
75 75
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @param float|int $min    The minimum.
106 106
      * @param float|int $max    The maximum.
107 107
      */
108
-    public static function outside(float|int $number, float|int $min, float|int $max): bool
108
+    public static function outside(float | int $number, float | int $min, float | int $max): bool
109 109
     {
110 110
         return ($number < $min || $number > $max);
111 111
     }
Please login to merge, or discard this patch.
src/Arrays.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @throws RuntimeException If $array is not accessible
71 71
      */
72
-    public static function get(array|ArrayAccess $array, int|string $key, mixed $default = null): mixed
72
+    public static function get(array | ArrayAccess $array, int | string $key, mixed $default = null): mixed
73 73
     {
74 74
         if (Arrays::keyExists($array, $key)) {
75 75
             return $array[$key];
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @return array<mixed>|false
145 145
      */
146
-    public static function interlace(array ...$args): array|false
146
+    public static function interlace(array ...$args): array | false
147 147
     {
148 148
         $numArgs = \count($args);
149 149
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @param array<mixed>|ArrayAccess<mixed, mixed> $array Array to check
188 188
      * @param int|string                             $key   Key to check
189 189
      */
190
-    public static function keyExists(array|ArrayAccess $array, int|string $key): bool
190
+    public static function keyExists(array | ArrayAccess $array, int | string $key): bool
191 191
     {
192 192
         if ($array instanceof ArrayAccess) {
193 193
             return $array->offsetExists($key);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      *
236 236
      * @throws RuntimeException If $array is not accessible
237 237
      */
238
-    public static function set(array|ArrayAccess &$array, null|int|string $key, mixed $value): void
238
+    public static function set(array | ArrayAccess & $array, null | int | string $key, mixed $value): void
239 239
     {
240 240
         if ($key === null) {
241 241
             $array = $value;
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      * @param array<mixed> $array Array to check
251 251
      * @param int|string   $value Value to check
252 252
      */
253
-    public static function valueExists(array $array, int|string $value): bool
253
+    public static function valueExists(array $array, int | string $value): bool
254 254
     {
255 255
         return \in_array($value, $array, true);
256 256
     }
Please login to merge, or discard this patch.
src/Filesystem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @return false|string
140 140
      */
141
-    public static function fileRead(string $file): false|string
141
+    public static function fileRead(string $file): false | string
142 142
     {
143 143
         // Sanity check
144 144
         if (!Filesystem::isFile($file)) {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      *
164 164
      * @return false|int<0, max>
165 165
      */
166
-    public static function fileWrite(string $file, string $data = '', int $flags = 0): false|int
166
+    public static function fileWrite(string $file, string $data = '', int $flags = 0): false | int
167 167
     {
168 168
         // Sanity checks
169 169
         if (!Filesystem::isFile($file)) {
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
             static fn (string $string, bool $binarySafe = false): bool => Strings::length($string, $binarySafe) > 0
337 337
         );
338 338
 
339
-        $filtered = array_reduce($filtered, static function (array $tmp, string $item): array {
339
+        $filtered = array_reduce($filtered, static function(array $tmp, string $item): array {
340 340
             if ($item === '..') {
341 341
                 array_pop($tmp);
342 342
             } elseif ($item !== '.') {
Please login to merge, or discard this patch.