Skip to content

Commit

Permalink
code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarsn committed Jan 15, 2023
1 parent 42edc4b commit 4e9e3ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Database/SelectFields/UnionTests/SearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public function resolve($root, $args, $ctx, ResolveInfo $info, Closure $getSelec
if (Str::startsWith($args['id'], 'comment:')) {
return Comment::select($selectFields->getSelect())
->with($selectFields->getRelations())
->where('id', (int)Str::after($args['id'], 'comment:'))
->first();
} else {
return Post::select($selectFields->getSelect())
->with($selectFields->getRelations())
->where('id', (int)$args['id'])
->where('id', (int) Str::after($args['id'], 'comment:'))
->first();
}

return Post::select($selectFields->getSelect())
->with($selectFields->getRelations())
->where('id', (int) $args['id'])
->first();
}
}

0 comments on commit 4e9e3ab

Please sign in to comment.