From 014075bb7ddc5d041204303ce55aa22ec9ba037f Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 12 Mar 2019 14:09:19 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- app/Http/Controllers/ProfileController.php | 1 - app/Models/Category.php | 3 ++- app/Models/RootCategory.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 9e8fdb5b1..7029dc587 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -5,7 +5,6 @@ namespace App\Http\Controllers; use App\Models\User; use Blacklight\NZBGet; use Blacklight\SABnzbd; -use App\Models\Category; use App\Models\Settings; use App\Models\UserRequest; use Illuminate\Support\Arr; diff --git a/app/Models/Category.php b/app/Models/Category.php index 681796cc4..cd4096976 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -521,6 +521,7 @@ class Category extends Model unset($ret[$key]); } } + return $ret; } @@ -548,7 +549,7 @@ class Category extends Model $temp_array[-1] = '--Please Select--'; } foreach ($categories as $category) { - $temp_array[$category->id] = $category->parent->title. ' > '.$category->title; + $temp_array[$category->id] = $category->parent->title.' > '.$category->title; } return $temp_array; diff --git a/app/Models/RootCategory.php b/app/Models/RootCategory.php index 70ed0a8a7..06dd20f72 100644 --- a/app/Models/RootCategory.php +++ b/app/Models/RootCategory.php @@ -2,8 +2,8 @@ namespace App\Models; -use Illuminate\Database\Eloquent\Model; use Watson\Rememberable\Rememberable; +use Illuminate\Database\Eloquent\Model; class RootCategory extends Model {