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; }