Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jun 27, 2024
1 parent d130cc2 commit 8258a7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tests/Support/SupportNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit 8258a7c

Please sign in to comment.