From 7a460c775d29741f42744bac52f993cb5b84be0f Mon Sep 17 00:00:00 2001 From: freekmurze Date: Tue, 4 Jun 2024 11:09:54 +0000 Subject: [PATCH] Fix styling --- src/SortableTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SortableTrait.php b/src/SortableTrait.php index 40ce734..55c0d16 100644 --- a/src/SortableTrait.php +++ b/src/SortableTrait.php @@ -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'); } @@ -106,7 +106,7 @@ public function moveOrderDown(): static ->where($orderColumnName, '>', $this->$orderColumnName) ->first(); - if (!$swapWithModel) { + if (! $swapWithModel) { return $this; } @@ -122,7 +122,7 @@ public function moveOrderUp(): static ->where($orderColumnName, '<', $this->$orderColumnName) ->first(); - if (!$swapWithModel) { + if (! $swapWithModel) { return $this; }