We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * Show the form for creating a new resource. |
| 50 | 50 | * |
| 51 | 51 | * @param PageRepository $pageRepository |
| 52 | - * @return \Illuminate\Http\Response |
|
| 52 | + * @return \Illuminate\Contracts\View\View |
|
| 53 | 53 | */ |
| 54 | 54 | public function create(PageRepository $pageRepository) |
| 55 | 55 | { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * Store a newly created resource in storage. |
| 61 | 61 | * |
| 62 | 62 | * @param \Illuminate\Http\Request $request |
| 63 | - * @return \Illuminate\Http\Response |
|
| 63 | + * @return \Illuminate\Http\RedirectResponse |
|
| 64 | 64 | */ |
| 65 | 65 | public function store(Request $request) |
| 66 | 66 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @param int $id |
| 76 | 76 | * @param RedirectRepository $redirectRepository |
| 77 | 77 | * @param PageRepository $repository |
| 78 | - * @return \Illuminate\Http\Response |
|
| 78 | + * @return \Illuminate\Contracts\View\View |
|
| 79 | 79 | */ |
| 80 | 80 | public function edit($id, RedirectRepository $redirectRepository, PageRepository $repository) |
| 81 | 81 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param \Illuminate\Http\Request $request |
| 93 | 93 | * @param int $id |
| 94 | 94 | * @param RedirectRepository $repository |
| 95 | - * @return \Illuminate\Http\Response |
|
| 95 | + * @return \Illuminate\Http\RedirectResponse |
|
| 96 | 96 | */ |
| 97 | 97 | public function update(Request $request, $id, RedirectRepository $repository) |
| 98 | 98 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * |
| 107 | 107 | * @param int $id |
| 108 | 108 | * @param RedirectRepository $repository |
| 109 | - * @return \Illuminate\Http\Response |
|
| 109 | + * @return \Illuminate\Http\RedirectResponse |
|
| 110 | 110 | * @throws \Exception |
| 111 | 111 | */ |
| 112 | 112 | public function destroy($id, RedirectRepository $repository) |
@@ -8,12 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Plugins\Redirects; |
| 10 | 10 | |
| 11 | -use App\Classes\Popup; |
|
| 12 | -use App\Model\Redirect; |
|
| 13 | -use Illuminate\Http\Request; |
|
| 14 | -use App\Plugins\PluginEngine; |
|
| 15 | 11 | use App\Classes\Repositories\PageRepository; |
| 16 | 12 | use App\Classes\Repositories\RedirectRepository; |
| 13 | +use App\Model\Redirect; |
|
| 14 | +use App\Plugins\PluginEngine; |
|
| 15 | +use Illuminate\Http\Request; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Class AdminController. |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | namespace App\Classes\Repositories; |
| 10 | 10 | |
| 11 | 11 | use App\Model\Account; |
| 12 | -use Illuminate\Support\Collection; |
|
| 13 | 12 | use Illuminate\Database\Eloquent\Builder; |
| 13 | +use Illuminate\Support\Collection; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Class AccountRepository. |
@@ -9,9 +9,8 @@ |
||
| 9 | 9 | namespace App\Classes\Repositories; |
| 10 | 10 | |
| 11 | 11 | use App\Model\Plugin; |
| 12 | -use Illuminate\Support\Collection; |
|
| 13 | -use Illuminate\Database\Eloquent\Model; |
|
| 14 | 12 | use Illuminate\Database\Eloquent\Builder; |
| 13 | +use Illuminate\Support\Collection; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Class PluginRepository. |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return mixed |
|
| 37 | + * @return Collection |
|
| 38 | 38 | */ |
| 39 | 39 | public function allWhereActive() : Collection |
| 40 | 40 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @return mixed |
|
| 45 | + * @return Collection |
|
| 46 | 46 | */ |
| 47 | 47 | public function allWhereViewable() : Collection |
| 48 | 48 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @return mixed |
|
| 53 | + * @return Collection |
|
| 54 | 54 | */ |
| 55 | 55 | public function allWhereDisabled() : Collection |
| 56 | 56 | { |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | namespace App\Classes\Repositories; |
| 10 | 10 | |
| 11 | 11 | use App\Model\Redirect; |
| 12 | -use Illuminate\Support\Collection; |
|
| 13 | 12 | use Illuminate\Database\Eloquent\Builder; |
| 13 | +use Illuminate\Support\Collection; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Class RedirectRepository. |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | namespace App\Classes\Repositories; |
| 10 | 10 | |
| 11 | 11 | use App\Model\Role; |
| 12 | -use Illuminate\Support\Collection; |
|
| 13 | 12 | use Illuminate\Database\Eloquent\Builder; |
| 13 | +use Illuminate\Support\Collection; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Class RoleRepository. |
@@ -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 | { |
@@ -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. |
@@ -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 | */ |
@@ -8,14 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Modules\Accounts; |
| 10 | 10 | |
| 11 | -use App\Classes\Email; |
|
| 11 | +use App\Classes\Repositories\AccountRepository; |
|
| 12 | +use App\Classes\Repositories\RoleRepository; |
|
| 13 | +use App\Http\Controllers\DashboardController; |
|
| 12 | 14 | use App\Model\Account; |
| 13 | -use Illuminate\Http\Request; |
|
| 14 | 15 | use App\Modules\ModuleEngine; |
| 15 | 16 | use Illuminate\Contracts\View\View; |
| 16 | -use App\Classes\Repositories\RoleRepository; |
|
| 17 | -use App\Http\Controllers\DashboardController; |
|
| 18 | -use App\Classes\Repositories\AccountRepository; |
|
| 17 | +use Illuminate\Http\Request; |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * Class Controller. |
@@ -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) |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Plugins\Pages; |
| 10 | 10 | |
| 11 | -use App\Model\Page; |
|
| 11 | +use App\Classes\Repositories\PageRepository; |
|
| 12 | 12 | use App\Model\Activity; |
| 13 | -use Illuminate\Http\Request; |
|
| 13 | +use App\Model\Page; |
|
| 14 | 14 | use App\Plugins\PluginEngine; |
| 15 | -use App\Classes\Repositories\PageRepository; |
|
| 15 | +use Illuminate\Http\Request; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Class Controller. |