We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @return mixed |
|
| 43 | + * @return Collection |
|
| 44 | 44 | */ |
| 45 | 45 | public function allWhereActive() : Collection |
| 46 | 46 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @return mixed |
|
| 51 | + * @return Collection |
|
| 52 | 52 | */ |
| 53 | 53 | public function allWhereViewable() : Collection |
| 54 | 54 | { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * @return mixed |
|
| 59 | + * @return Collection |
|
| 60 | 60 | */ |
| 61 | 61 | public function allWhereDisabled() : Collection |
| 62 | 62 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * Return the model based on the input name. |
| 68 | 68 | * |
| 69 | 69 | * @param $plugin_name |
| 70 | - * @return Plugin|array|\stdClass |
|
| 70 | + * @return Plugin |
|
| 71 | 71 | */ |
| 72 | 72 | public function whereName($plugin_name) |
| 73 | 73 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | use App\Model\Plugin; |
| 12 | 12 | use Illuminate\Database\Eloquent\Builder; |
| 13 | -use Illuminate\Database\Eloquent\Model; |
|
| 14 | 13 | use Illuminate\Support\Collection; |
| 15 | 14 | /** |
| 16 | 15 | * Class PluginRepository. |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace App\Model; |
| 4 | 4 | |
| 5 | 5 | use Carbon\Carbon; |
| 6 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 7 | 6 | use Illuminate\Database\Eloquent\Model as EloquentModel; |
| 7 | +use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class Menus. |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * Return the link that this connects to, page or hyperlink. |
| 86 | 86 | * |
| 87 | - * @return \Illuminate\Contracts\Routing\UrlGenerator|string |
|
| 87 | + * @return string|null |
|
| 88 | 88 | */ |
| 89 | 89 | public function link() |
| 90 | 90 | { |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Classes\Library\PageLoader; |
| 10 | 10 | |
| 11 | +use App\Classes\Repositories\MenuRepository; |
|
| 12 | +use App\Http\Controllers\ErrorController; |
|
| 11 | 13 | use App\Model\Page; |
| 12 | 14 | use App\Model\Role; |
| 15 | +use Illuminate\Contracts\Routing\ResponseFactory; |
|
| 13 | 16 | use Illuminate\Http\Response; |
| 14 | 17 | use Illuminate\Support\Collection; |
| 15 | -use App\Http\Controllers\ErrorController; |
|
| 16 | -use App\Classes\Repositories\MenuRepository; |
|
| 17 | -use Illuminate\Contracts\Routing\ResponseFactory; |
|
| 18 | 18 | |
| 19 | 19 | class Frontpage |
| 20 | 20 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @return bool |
|
| 81 | + * @return string |
|
| 82 | 82 | */ |
| 83 | 83 | public function classState() |
| 84 | 84 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @return mixed |
|
| 105 | + * @return string |
|
| 106 | 106 | */ |
| 107 | 107 | public function target() |
| 108 | 108 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Gets the current url for the user and applies it to a crumb. |
| 78 | 78 | * |
| 79 | - * @return Breadcrumbs |
|
| 79 | + * @return OldBreadcrumbs |
|
| 80 | 80 | */ |
| 81 | 81 | public function fromCurrentUrl() |
| 82 | 82 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * Enter a url that is an addition to the current domain. |
| 88 | 88 | * |
| 89 | 89 | * @param $string |
| 90 | - * @return Breadcrumbs |
|
| 90 | + * @return OldBreadcrumbs |
|
| 91 | 91 | */ |
| 92 | 92 | public function fromRelativeUrl($string) |
| 93 | 93 | { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | /** |
| 336 | 336 | * Return breadcrumb title. |
| 337 | 337 | * |
| 338 | - * @return mixed |
|
| 338 | + * @return string |
|
| 339 | 339 | */ |
| 340 | 340 | public function title() |
| 341 | 341 | { |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | /** |
| 346 | 346 | * Return breadcrumb url link. |
| 347 | 347 | * |
| 348 | - * @return null |
|
| 348 | + * @return boolean |
|
| 349 | 349 | */ |
| 350 | 350 | public function url() |
| 351 | 351 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Frontend requires that a organised list of menus is returned. |
| 39 | 39 | * |
| 40 | - * @return \Illuminate\Database\Eloquent\Collection|static[] |
|
| 40 | + * @return Collection |
|
| 41 | 41 | */ |
| 42 | 42 | public function organisedMenuList() |
| 43 | 43 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | use App\Model\Menu; |
| 12 | 12 | use Illuminate\Database\Eloquent\Builder; |
| 13 | -use Illuminate\Database\Eloquent\Model; |
|
| 14 | 13 | use Illuminate\Support\Collection; |
| 15 | 14 | |
| 16 | 15 | /** |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Return the auth account instance class. |
| 5 | 5 | * |
| 6 | - * @return \App\Model\Account|\Illuminate\Contracts\Auth\Authenticatable |
|
| 6 | + * @return App\Model\Account |
|
| 7 | 7 | */ |
| 8 | 8 | function account() |
| 9 | 9 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Redirects must use a controller to handle the parameter, as they require a specified target. |
| 47 | - * @return mixed |
|
| 47 | + * @return \Illuminate\Http\RedirectResponse |
|
| 48 | 48 | */ |
| 49 | 49 | public function redirect() |
| 50 | 50 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Standard page views are once that use the URL as the designated target. |
| 56 | 56 | * |
| 57 | - * @return mixed |
|
| 57 | + * @return \Illuminate\Http\Response |
|
| 58 | 58 | * @throws \Exception |
| 59 | 59 | * @internal param FrontPageLoader $pageLoader |
| 60 | 60 | */ |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @return mixed |
|
| 67 | + * @return \Illuminate\Support\Collection |
|
| 68 | 68 | */ |
| 69 | 69 | private function navigationData() |
| 70 | 70 | { |
@@ -10,12 +10,12 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace App\Http\Controllers; |
| 12 | 12 | |
| 13 | -use App\Model\Page; |
|
| 14 | -use App\Events\PageWasVisited; |
|
| 15 | -use App\Events\WebsiteWasVisited; |
|
| 13 | +use App\Classes\Library\PageLoader\Frontpage; |
|
| 16 | 14 | use App\Classes\Repositories\MenuRepository; |
| 17 | 15 | use App\Classes\Repositories\PageRepository; |
| 18 | -use App\Classes\Library\PageLoader\Frontpage; |
|
| 16 | +use App\Events\PageWasVisited; |
|
| 17 | +use App\Events\WebsiteWasVisited; |
|
| 18 | +use App\Model\Page; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Class PageController. |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @param \Illuminate\Http\Request $request |
| 57 | 57 | * @param Page $page |
| 58 | - * @return \Illuminate\Http\Response |
|
| 58 | + * @return \Illuminate\Http\RedirectResponse |
|
| 59 | 59 | */ |
| 60 | 60 | public function store(Request $request, Page $page) |
| 61 | 61 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * @param \Illuminate\Http\Request $request |
| 97 | 97 | * @param string $name |
| 98 | 98 | * @param PageRepository $repository |
| 99 | - * @return \Illuminate\Http\Response |
|
| 99 | + * @return \Illuminate\Http\RedirectResponse |
|
| 100 | 100 | */ |
| 101 | 101 | public function update(Request $request, string $name, PageRepository $repository) |
| 102 | 102 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * |
| 115 | 115 | * @param $slug |
| 116 | 116 | * @param PageRepository $repository |
| 117 | - * @return \Illuminate\Http\Response |
|
| 117 | + * @return \Illuminate\Http\RedirectResponse |
|
| 118 | 118 | * @throws \Exception |
| 119 | 119 | */ |
| 120 | 120 | public function destroy($slug, PageRepository $repository) |