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 Dec 11, 2023
1 parent e55bece commit f67cb8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SortableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function setNewOrder($ids, int $startOrder = 1, string $primaryKey

foreach ($ids as $id) {
static::withoutGlobalScope(SoftDeletingScope::class)
->when(is_callable($modifyQuery), function($query) use ($modifyQuery) {
->when(is_callable($modifyQuery), function ($query) use ($modifyQuery) {
return $modifyQuery($query);
})
->where($primaryKeyColumn, $id)
Expand Down
2 changes: 1 addition & 1 deletion tests/DummyWithGlobalScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected static function boot()
{
parent::boot();

parent::addGlobalScope('ActiveScope', function(Builder $builder) {
parent::addGlobalScope('ActiveScope', function (Builder $builder) {
$builder->where('is_active', true);
});
}
Expand Down
2 changes: 1 addition & 1 deletion tests/SortableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function it_can_set_new_order_without_global_scopes_models()

$newOrder = Collection::make(Dummy::all()->pluck('id'))->shuffle()->toArray();

DummyWithGlobalScope::setNewOrder($newOrder, 1, null, function($query) {
DummyWithGlobalScope::setNewOrder($newOrder, 1, null, function ($query) {
$query->withoutGlobalScope('ActiveScope');
});

Expand Down

0 comments on commit f67cb8e

Please sign in to comment.