mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
Replace usage of array_ helper with Arr class directly to prepare for Laravel 5.8 changes
This commit is contained in:
@@ -6,6 +6,7 @@ use Blacklight\Genres;
|
||||
use Blacklight\Console;
|
||||
use App\Models\Category;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class ConsoleController extends BasePageController
|
||||
{
|
||||
@@ -35,7 +36,7 @@ class ConsoleController extends BasePageController
|
||||
];
|
||||
}
|
||||
$category = Category::GAME_ROOT;
|
||||
if ($id && \in_array($id, array_pluck($ctmp, 'title'), false)) {
|
||||
if ($id && \in_array($id, Arr::pluck($ctmp, 'title'), false)) {
|
||||
$cat = Category::query()
|
||||
->where('title', $id)
|
||||
->where('parentid', '=', Category::GAME_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user