diff --git a/src/Illuminate/Support/Number.php b/src/Illuminate/Support/Number.php index 1a6a3f85dfe8..0b52a7912ae9 100644 --- a/src/Illuminate/Support/Number.php +++ b/src/Illuminate/Support/Number.php @@ -235,9 +235,9 @@ public static function clamp(int|float $number, int|float $min, int|float $max) /** * Split the given number into pairs of min/max values. * - * @param int|float $to - * @param int|float $by - * @param int|float $offset + * @param int|float $to + * @param int|float $by + * @param int|float $offset * @return array */ public static function pairs(int|float $to, int|float $by, int|float $offset = 1) diff --git a/tests/Support/SupportNumberTest.php b/tests/Support/SupportNumberTest.php index d62f8716b250..cf1796bfaa58 100644 --- a/tests/Support/SupportNumberTest.php +++ b/tests/Support/SupportNumberTest.php @@ -289,8 +289,8 @@ public function testSummarize() public function testPairs() { - $this->assertSame([[1,10],[11,20],[21,25]], Number::pairs(25, 10)); - $this->assertSame([[0,10],[10,20],[20,25]], Number::pairs(25, 10, 0)); - $this->assertSame([[0,2.5],[2.5,5.0],[5.0,7.5],[7.5,10.0]], Number::pairs(10, 2.5, 0)); + $this->assertSame([[1, 10], [11, 20], [21, 25]], Number::pairs(25, 10)); + $this->assertSame([[0, 10], [10, 20], [20, 25]], Number::pairs(25, 10, 0)); + $this->assertSame([[0, 2.5], [2.5, 5.0], [5.0, 7.5], [7.5, 10.0]], Number::pairs(10, 2.5, 0)); } }