We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -8,10 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Classes\Library\PageLoading; |
| 10 | 10 | |
| 11 | -use App\Model\Menu; |
|
| 12 | -use App\Model\Page; |
|
| 13 | 11 | use App\Classes\Breadcrumbs; |
| 14 | 12 | use App\Classes\Repositories\MenuRepository; |
| 13 | +use App\Model\Page; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Class DataBuilder. |
@@ -56,11 +56,17 @@ discard block |
||
| 56 | 56 | return $this->whereNotNull('page_id')->whereNull('menu_id')->pluck('title', 'id'); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @return null|\Illuminate\Database\Eloquent\Collection |
|
| 61 | + */ |
|
| 59 | 62 | public function submenusWhereID($integer) |
| 60 | 63 | { |
| 61 | 64 | return $this->where('menu_id', $integer)->get(); |
| 62 | 65 | } |
| 63 | 66 | |
| 67 | + /** |
|
| 68 | + * @return null|\Illuminate\Database\Eloquent\Collection |
|
| 69 | + */ |
|
| 64 | 70 | public function allMenus() |
| 65 | 71 | { |
| 66 | 72 | return $this->whereNull('menu_id')->get(); |
@@ -108,6 +114,7 @@ discard block |
||
| 108 | 114 | |
| 109 | 115 | /** |
| 110 | 116 | * Return all the global menus with the submenus and pages. |
| 117 | + * @return Collection |
|
| 111 | 118 | */ |
| 112 | 119 | public function allGlobalMenusWithSubmenus() |
| 113 | 120 | { |
@@ -9,9 +9,7 @@ |
||
| 9 | 9 | namespace App\Classes\Repositories; |
| 10 | 10 | |
| 11 | 11 | use App\Model\Menu; |
| 12 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 13 | 12 | use Illuminate\Support\Collection; |
| 14 | -use Illuminate\Database\Eloquent\Builder; |
|
| 15 | 13 | |
| 16 | 14 | /** |
| 17 | 15 | * Class MenuRepository. |
@@ -9,10 +9,7 @@ |
||
| 9 | 9 | namespace App\Classes\Repositories; |
| 10 | 10 | |
| 11 | 11 | use App\Model\Page; |
| 12 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 13 | -use Illuminate\Database\Eloquent\SoftDeletingScope; |
|
| 14 | 12 | use Illuminate\Support\Collection; |
| 15 | -use Illuminate\Database\Eloquent\Builder; |
|
| 16 | 13 | |
| 17 | 14 | /** |
| 18 | 15 | * Class PageRepository. |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @return mixed |
|
| 22 | + * @return Collection |
|
| 23 | 23 | */ |
| 24 | 24 | public function allWhereActive() : Collection |
| 25 | 25 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @return mixed |
|
| 30 | + * @return Collection |
|
| 31 | 31 | */ |
| 32 | 32 | public function allWhereViewable() : Collection |
| 33 | 33 | { |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | - * @return mixed |
|
| 38 | + * @return Collection |
|
| 39 | 39 | */ |
| 40 | 40 | public function allWhereDisabled() : Collection |
| 41 | 41 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * Return the model based on the input name. |
| 47 | 47 | * |
| 48 | 48 | * @param $plugin_name |
| 49 | - * @return Plugin|array|\stdClass |
|
| 49 | + * @return Plugin |
|
| 50 | 50 | */ |
| 51 | 51 | public function whereName($plugin_name) |
| 52 | 52 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | use App\Model\Plugin; |
| 12 | 12 | use Illuminate\Support\Collection; |
| 13 | -use Illuminate\Database\Eloquent\Builder; |
|
| 14 | 13 | |
| 15 | 14 | /** |
| 16 | 15 | * Class PluginRepository. |