mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
Small opcode optimizations
This commit is contained in:
@@ -31,7 +31,7 @@ class AdultController extends BasePageController
|
||||
];
|
||||
}
|
||||
$category = $request->has('t') ? $request->input('t') : Category::XXX_ROOT;
|
||||
if ($id && \in_array($id, Arr::pluck($mtmp, 'title'), false)) {
|
||||
if ($id && \in_array($id, Arr::pluck($mtmp, 'title'), true)) {
|
||||
$cat = Category::query()
|
||||
->where('title', $id)
|
||||
->where('root_categories_id', '=', Category::XXX_ROOT)
|
||||
@@ -42,7 +42,7 @@ class AdultController extends BasePageController
|
||||
$catarray[] = $category;
|
||||
|
||||
$ordering = $this->releaseBrowseService->getBrowseOrdering();
|
||||
$orderby = $request->has('ob') && \in_array($request->input('ob'), $ordering, false) ? $request->input('ob') : '';
|
||||
$orderby = $request->has('ob') && \in_array($request->input('ob'), $ordering, true) ? $request->input('ob') : '';
|
||||
|
||||
$page = $request->has('page') && is_numeric($request->input('page')) ? $request->input('page') : 1;
|
||||
$offset = ($page - 1) * config('nntmux.items_per_page');
|
||||
|
||||
Reference in New Issue
Block a user