mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +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\Music;
|
||||
use Blacklight\Genres;
|
||||
use App\Models\Category;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class MusicController extends BasePageController
|
||||
{
|
||||
@@ -32,7 +33,7 @@ class MusicController extends BasePageController
|
||||
}
|
||||
|
||||
$category = Category::MUSIC_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::MUSIC_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user