Passed
Push — master ( d36979...eb151a )
by Eric
02:04
created
src/Strings.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -479,7 +479,8 @@
 block discarded – undo
479 479
     public static function randomBytes(int $length): string
480 480
     {
481 481
         // Sanity check
482
-        if ($length < 1) { // @phpstan-ignore-line
482
+        if ($length < 1) {
483
+// @phpstan-ignore-line
483 484
             throw new RandomException('$length must be greater than 1.');
484 485
         }
485 486
 
Please login to merge, or discard this patch.
src/Conversion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -280,10 +280,10 @@
 block discarded – undo
280 280
      * @return  array<string, int|float|string>
281 281
      */
282 282
     public static function haversineDistance(
283
-        int|float $startingLatitude,
284
-        int|float $startingLongitude,
285
-        int|float $endingLatitude,
286
-        int|float $endingLongitude,
283
+        int | float $startingLatitude,
284
+        int | float $startingLongitude,
285
+        int | float $endingLatitude,
286
+        int | float $endingLongitude,
287 287
         int $precision = 0
288 288
     ): array {
289 289
         // Radians
Please login to merge, or discard this patch.
src/Arrays.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      *
102 102
      * @throws RuntimeException  If $array is not accessible
103 103
      */
104
-    public static function set(array | ArrayAccess &$array, string | int | null $key, mixed $value): mixed
104
+    public static function set(array | ArrayAccess & $array, string | int | null $key, mixed $value): mixed
105 105
     {
106 106
         if (is_null($key)) {
107 107
             return $array = $value;
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector;
10 10
 use Rector\Core\ValueObject\PhpVersion;
11 11
 
12
-return static function (RectorConfig $rectorConfig): void {
12
+return static function(RectorConfig $rectorConfig): void {
13 13
     $rectorConfig->paths([
14 14
         __DIR__ . '/src',
15 15
         __DIR__ . '/tests/src',
Please login to merge, or discard this patch.
src/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
             static fn (string $string, bool $binarySafe = false): int => Strings::length($string, $binarySafe)
237 237
         );
238 238
 
239
-        $filtered = array_reduce($filtered, static function (array $tmp, string $item): array {
239
+        $filtered = array_reduce($filtered, static function(array $tmp, string $item): array {
240 240
             if ($item === '..') {
241 241
                 array_pop($tmp);
242 242
             } elseif ($item !== '.') {
Please login to merge, or discard this patch.
src/Environment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         );
177 177
 
178 178
         // Traverses the $ips array. Set $ip to current value if it's a public IP.
179
-        array_walk($ips, static function (string $value, int $key) use (&$ip): string {
179
+        array_walk($ips, static function(string $value, int $key) use (&$ip): string {
180 180
             if (Environment::isPublicIp($value)) {
181 181
                 $ip = $value;
182 182
             }
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      *
386 386
      * @throws RuntimeException|ArgumentCountError
387 387
      */
388
-    public static function iniSet(string $option, string|int|float|bool|null $value): string | false
388
+    public static function iniSet(string $option, string | int | float | bool | null $value): string | false
389 389
     {
390 390
         static $iniSetAvailable;
391 391
 
Please login to merge, or discard this patch.