Skip to content

Commit

Permalink
Raise 100% mutation. (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed May 13, 2023
1 parent 88647e1 commit d818507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AbstractIteratorDataDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function withOffset(int $value): static
{
$new = clone $this;

$new->offset = match ($new->limit * ($value - 1) <= 0) {
$new->offset = match ($value <= 0) {
true => self::DEFAULT_OFFSET,
default => $new->limit * ($value - 1),
};
Expand Down
2 changes: 1 addition & 1 deletion src/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function getSortParams(string $column): array

$directions = $this->getColumnOrders(true);

$direction = $directions[$column] === SORT_DESC ? SORT_ASC : SORT_DESC;
$direction = isset($directions[$column]) && $directions[$column] === SORT_DESC ? SORT_ASC : SORT_DESC;
unset($directions[$column]);

$directions = match ($this->multiSort) {
Expand Down

0 comments on commit d818507

Please sign in to comment.