Passed
Push — master ( 4f589d...86d47a )
by Eric
02:05
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.
src/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@
 block discarded – undo
344 344
      *
345 345
      * @throws RuntimeException|ArgumentCountError
346 346
      */
347
-    public static function iniSet(string $option, string|int|float|bool|null $value): string | false
347
+    public static function iniSet(string $option, string | int | float | bool | null $value): string | false
348 348
     {
349 349
         // @codeCoverageIgnoreStart
350 350
         if (!function_exists('ini_set')) {
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.