mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Replace usage of array_ helper with Arr class directly to prepare for Laravel 5.8 changes
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
||||
use Blacklight\XXX;
|
||||
use App\Models\Category;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class AdultController extends BasePageController
|
||||
{
|
||||
@@ -29,7 +30,7 @@ class AdultController extends BasePageController
|
||||
];
|
||||
}
|
||||
$category = Category::XXX_ROOT;
|
||||
if ($id && \in_array($id, array_pluck($mtmp, 'title'), false)) {
|
||||
if ($id && \in_array($id, Arr::pluck($mtmp, 'title'), false)) {
|
||||
$cat = Category::query()
|
||||
->where('title', $id)
|
||||
->where('parentid', '=', Category::XXX_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user