We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this 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. |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * The steps required for this plugin product to fully |
| 60 | 60 | * remove itself from the webservice. |
| 61 | 61 | * |
| 62 | - * @return bool |
|
| 62 | + * @return boolean|null |
|
| 63 | 63 | * @throws \Exception |
| 64 | 64 | */ |
| 65 | 65 | public function uninstall() |
@@ -8,10 +8,10 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Plugins\Articles; |
| 10 | 10 | |
| 11 | -use App\Model\Page; |
|
| 12 | -use App\Plugins\PluginHandler; |
|
| 13 | 11 | use App\Classes\Interfaces\Installable; |
| 14 | 12 | use App\Classes\Repositories\PageRepository; |
| 13 | +use App\Model\Page; |
|
| 14 | +use App\Plugins\PluginHandler; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Class ArticleController. |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Classes\Library\PageLoader\Coordinators; |
| 10 | 10 | |
| 11 | +use App\Classes\Breadcrumbs; |
|
| 11 | 12 | use App\Model\Menu; |
| 12 | 13 | use App\Model\Page; |
| 13 | -use App\Classes\Breadcrumbs; |
|
| 14 | 14 | use Illuminate\Support\Collection; |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -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 | /** |
| 20 | 20 | * Class Frontpage |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Classes\Repositories; |
| 4 | 4 | |
| 5 | +use App\Model\ArticleCategory; |
|
| 5 | 6 | use App\Model\Menu; |
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 7 | use Illuminate\Database\Eloquent\Builder; |
| 8 | -use App\Model\ArticleCategory; |
|
| 8 | +use Illuminate\Support\Collection; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Class ArticleCategoryRepository |
@@ -10,9 +10,8 @@ |
||
| 10 | 10 | |
| 11 | 11 | use App\Model\Article; |
| 12 | 12 | use App\Model\Menu; |
| 13 | -use Illuminate\Support\Collection; |
|
| 14 | 13 | use Illuminate\Database\Eloquent\Builder; |
| 15 | -use Illuminate\Database\Eloquent\Relations\HasMany; |
|
| 14 | +use Illuminate\Support\Collection; |
|
| 16 | 15 | |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -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 | */ |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Model; |
| 4 | 4 | |
| 5 | -use Carbon\Carbon; |
|
| 6 | 5 | use App\Classes\Interfaces\Linker; |
| 7 | -use Illuminate\Support\Collection; |
|
| 8 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 9 | -use Illuminate\Database\Eloquent\Relations\MorphOne; |
|
| 6 | +use Carbon\Carbon; |
|
| 10 | 7 | use Illuminate\Database\Eloquent\Model as EloquentModel; |
| 8 | +use Illuminate\Database\Eloquent\Relations\MorphOne; |
|
| 9 | +use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 10 | +use Illuminate\Support\Collection; |
|
| 11 | 11 | use Laravel\Scout\Searchable; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @param Article $article |
| 72 | 72 | * @param \Illuminate\Http\Request $request |
| 73 | - * @return \Illuminate\Http\Response |
|
| 73 | + * @return \Illuminate\Http\RedirectResponse |
|
| 74 | 74 | */ |
| 75 | 75 | public function store(Article $article, Request $request) |
| 76 | 76 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * |
| 114 | 114 | * @param \Illuminate\Http\Request $request |
| 115 | 115 | * @param $slug |
| 116 | - * @return \Illuminate\Http\Response |
|
| 116 | + * @return \Illuminate\Http\RedirectResponse |
|
| 117 | 117 | * @internal param int $id |
| 118 | 118 | */ |
| 119 | 119 | public function update(Request $request, $slug) |
@@ -130,8 +130,7 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * Remove the specified resource from storage. |
| 132 | 132 | * |
| 133 | - * @param int $id |
|
| 134 | - * @return \Illuminate\Http\Response |
|
| 133 | + * @return \Illuminate\Http\RedirectResponse |
|
| 135 | 134 | */ |
| 136 | 135 | public function destroy($slug) |
| 137 | 136 | { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | use App\Model\Activity; |
| 14 | 14 | use App\Model\Article; |
| 15 | 15 | use App\Model\ArticleCategory; |
| 16 | -use Illuminate\Http\Request; |
|
| 17 | 16 | use App\Plugins\PluginEngine; |
| 17 | +use Illuminate\Http\Request; |
|
| 18 | 18 | use Illuminate\Validation\Rule; |
| 19 | 19 | |
| 20 | 20 | /** |