Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-01-23 22:42:35 +00:00
parent 00d00024e5
commit 2cc3d2b2cb
10 changed files with 8 additions and 4 deletions
-2
View File
@@ -138,7 +138,6 @@ class ForumController extends Controller
$sorting = 'posts.id';
$direction = 'desc';
}
} else {
if ($request->has('sorting') && $request->input('sorting') != null) {
$sorting = \sprintf('topics.%s', $request->input('sorting'));
@@ -147,7 +146,6 @@ class ForumController extends Controller
$sorting = 'topics.last_reply_at';
$direction = 'desc';
}
}
$results = $result->orderBy($sorting, $direction)->paginate(25)->withQueryString();