Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Jun 4, 2024
1 parent a8d09f5 commit 7a460c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SortableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function setNewOrder(
string $primaryKeyColumn = null,
callable $modifyQuery = null
): void {
if (!is_array($ids) && !$ids instanceof ArrayAccess) {
if (! is_array($ids) && ! $ids instanceof ArrayAccess) {
throw new InvalidArgumentException('You must pass an array or ArrayAccess object to setNewOrder');
}

Expand Down Expand Up @@ -106,7 +106,7 @@ public function moveOrderDown(): static
->where($orderColumnName, '>', $this->$orderColumnName)
->first();

if (!$swapWithModel) {
if (! $swapWithModel) {
return $this;
}

Expand All @@ -122,7 +122,7 @@ public function moveOrderUp(): static
->where($orderColumnName, '<', $this->$orderColumnName)
->first();

if (!$swapWithModel) {
if (! $swapWithModel) {
return $this;
}

Expand Down

0 comments on commit 7a460c7

Please sign in to comment.