We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * - breadcrumbs, menus |
| 46 | 46 | * |
| 47 | - * @param array $keys |
|
| 47 | + * @param string[] $keys |
|
| 48 | 48 | * @return $this |
| 49 | 49 | */ |
| 50 | 50 | public function without(array $keys) |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Classes\Library\PageLoading; |
| 10 | 10 | |
| 11 | +use App\Http\Controllers\ErrorController; |
|
| 11 | 12 | use App\Model\Page; |
| 12 | 13 | use Illuminate\Support\Collection; |
| 13 | -use App\Http\Controllers\ErrorController; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Class FrontPage. |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * We may in future want to parse something so we have this on its |
| 66 | 66 | * own method. |
| 67 | 67 | * |
| 68 | - * @return mixed |
|
| 68 | + * @return string |
|
| 69 | 69 | */ |
| 70 | 70 | public function content() |
| 71 | 71 | { |
@@ -8,10 +8,10 @@ |
||
| 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\Menu; |
|
| 14 | +use App\Model\Page; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Class DataBuilder. |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * This should be the only method used for returning views. (not errors) |
| 46 | 46 | * |
| 47 | - * @param null $blade_template |
|
| 47 | + * @param string $blade_template |
|
| 48 | 48 | * @return mixed |
| 49 | 49 | */ |
| 50 | 50 | public function normal(Page $page, Collection $data, $blade_template = null) |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * This should be the only method used for returning errors! |
| 75 | 75 | * @param Collection $data |
| 76 | - * @param $template |
|
| 76 | + * @param string $template |
|
| 77 | 77 | * @param int $response |
| 78 | 78 | * @return \Illuminate\Http\Response|\Symfony\Component\HttpFoundation\Response |
| 79 | 79 | * @throws \Exception |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * Return the linked page name. |
| 53 | 53 | * |
| 54 | - * @return mixed |
|
| 54 | + * @return string|null |
|
| 55 | 55 | */ |
| 56 | 56 | public function pageTitle() |
| 57 | 57 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @param $integer |
|
| 216 | + * @param integer $integer |
|
| 217 | 217 | * @return $this |
| 218 | 218 | */ |
| 219 | 219 | public function setPageID($integer) |
@@ -252,6 +252,7 @@ discard block |
||
| 252 | 252 | * Set the enabled value from |
| 253 | 253 | * 1 - enabled |
| 254 | 254 | * 0 -disabled. |
| 255 | + * @param boolean $boolean |
|
| 255 | 256 | */ |
| 256 | 257 | public function setStatus($boolean) |
| 257 | 258 | { |
@@ -269,7 +270,7 @@ discard block |
||
| 269 | 270 | * Boolean for this to be true or false. default is true. |
| 270 | 271 | * |
| 271 | 272 | * @param bool $boolean |
| 272 | - * @return mixed |
|
| 273 | + * @return Menu |
|
| 273 | 274 | */ |
| 274 | 275 | public function setRequired($boolean = true) |
| 275 | 276 | { |
@@ -287,8 +288,8 @@ discard block |
||
| 287 | 288 | /** |
| 288 | 289 | * Return boolean if this is a requirement for loading. |
| 289 | 290 | * |
| 290 | - * @param null $boolean |
|
| 291 | - * @return mixed |
|
| 291 | + * @param boolean $boolean |
|
| 292 | + * @return boolean |
|
| 292 | 293 | */ |
| 293 | 294 | public function isRequirement($boolean = null) |
| 294 | 295 | { |
@@ -301,7 +302,7 @@ discard block |
||
| 301 | 302 | |
| 302 | 303 | /** |
| 303 | 304 | * @param null $boolean |
| 304 | - * @return mixed |
|
| 305 | + * @return boolean |
|
| 305 | 306 | */ |
| 306 | 307 | public function isExternal($boolean = null) |
| 307 | 308 | { |
@@ -313,7 +314,7 @@ discard block |
||
| 313 | 314 | } |
| 314 | 315 | |
| 315 | 316 | /** |
| 316 | - * @return Account|mixed |
|
| 317 | + * @return Account |
|
| 317 | 318 | */ |
| 318 | 319 | public function creator() : Account |
| 319 | 320 | { |
@@ -363,7 +364,7 @@ discard block |
||
| 363 | 364 | /** |
| 364 | 365 | * Get the creator model of the eloquent model. |
| 365 | 366 | * |
| 366 | - * @return Account|mixed |
|
| 367 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 367 | 368 | */ |
| 368 | 369 | public function editor() |
| 369 | 370 | { |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Model; |
| 10 | 10 | |
| 11 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 12 | 11 | use Illuminate\Database\Eloquent\Model as EloquentModel; |
| 12 | +use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Class Menus. |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | /** |
| 147 | 147 | * Generate a url to the audited data. |
| 148 | 148 | * |
| 149 | - * @return mixed |
|
| 149 | + * @return string |
|
| 150 | 150 | */ |
| 151 | 151 | public function auditUrl() |
| 152 | 152 | { |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Model; |
| 4 | 4 | |
| 5 | +use App\Classes\Interfaces\AuditInterface; |
|
| 5 | 6 | use Carbon\Carbon; |
| 6 | 7 | use Illuminate\Database\Eloquent\Collection; |
| 7 | -use OwenIt\Auditing\Auditable; |
|
| 8 | -use App\Classes\Interfaces\AuditInterface; |
|
| 9 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 10 | -use Illuminate\Database\Eloquent\Relations\HasMany; |
|
| 11 | 8 | use Illuminate\Database\Eloquent\Model as EloquentModel; |
| 9 | +use Illuminate\Database\Eloquent\Relations\HasMany; |
|
| 10 | +use Illuminate\Database\Eloquent\SoftDeletes; |
|
| 11 | +use OwenIt\Auditing\Auditable; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Class Pages. |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @param Request $request |
| 69 | 69 | * @param $id |
| 70 | - * @return bool |
|
| 70 | + * @return \Illuminate\Http\JsonResponse |
|
| 71 | 71 | */ |
| 72 | 72 | public function ajax_delete(Request $request, $id) |
| 73 | 73 | { |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | * |
| 355 | 355 | * @param Request $request |
| 356 | 356 | * @param Menu $menu |
| 357 | - * @return mixed |
|
| 357 | + * @return \Illuminate\Http\RedirectResponse |
|
| 358 | 358 | */ |
| 359 | 359 | public function page(Request $request, Menu $menu) |
| 360 | 360 | { |
@@ -8,16 +8,16 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Plugins\Menus; |
| 10 | 10 | |
| 11 | -use DB; |
|
| 12 | -use App\Model\Menu; |
|
| 13 | -use App\Model\Page; |
|
| 14 | 11 | use App\Classes\Popup; |
| 15 | -use Illuminate\Http\Request; |
|
| 16 | -use App\Plugins\PluginEngine; |
|
| 17 | -use League\Flysystem\Exception; |
|
| 18 | 12 | use App\Classes\Repositories\MenuRepository; |
| 19 | 13 | use App\Classes\Repositories\PageRepository; |
| 14 | +use App\Model\Menu; |
|
| 15 | +use App\Model\Page; |
|
| 16 | +use App\Plugins\PluginEngine; |
|
| 17 | +use DB; |
|
| 20 | 18 | use Illuminate\Database\Eloquent\Collection; |
| 19 | +use Illuminate\Http\Request; |
|
| 20 | +use League\Flysystem\Exception; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Class Controller. |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * A list of all the news articles created, in a table. |
| 38 | 38 | * |
| 39 | - * @return mixed |
|
| 39 | + * @return \Illuminate\Contracts\View\View |
|
| 40 | 40 | */ |
| 41 | 41 | public function index() |
| 42 | 42 | { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * Steps required for the application install. |
| 134 | 134 | * Usually defined for logging & new sql entries. |
| 135 | 135 | * |
| 136 | - * @return mixed |
|
| 136 | + * @return boolean |
|
| 137 | 137 | */ |
| 138 | 138 | public function install(Plugin $plugin) |
| 139 | 139 | { |
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Plugins\News; |
| 10 | 10 | |
| 11 | -use Carbon\Carbon; |
|
| 11 | +use App\Classes\Interfaces\InstallableInterface; |
|
| 12 | +use App\Classes\Repositories\ArticleRepository; |
|
| 13 | +use App\Classes\Repositories\MenuRepository; |
|
| 14 | +use App\Classes\Repositories\PageRepository; |
|
| 15 | +use App\Model\Article; |
|
| 12 | 16 | use App\Model\Menu; |
| 13 | 17 | use App\Model\Page; |
| 14 | 18 | use App\Model\Plugin; |
| 15 | -use App\Model\Article; |
|
| 16 | -use Illuminate\Http\Request; |
|
| 17 | -use App\Plugins\PluginEngine; |
|
| 18 | -use App\Classes\Repositories\MenuRepository; |
|
| 19 | -use App\Classes\Repositories\PageRepository; |
|
| 20 | -use App\Classes\Repositories\ArticleRepository; |
|
| 21 | -use App\Classes\Interfaces\InstallableInterface; |
|
| 22 | 19 | use App\Plugins\Menus\BackendController as MenuController; |
| 20 | +use App\Plugins\PluginEngine; |
|
| 21 | +use Carbon\Carbon; |
|
| 22 | +use Illuminate\Http\Request; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * Class Controller. |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace App\Plugins\Pages; |
| 10 | 10 | |
| 11 | -use App\Model\Page; |
|
| 12 | -use App\Plugins\PluginEngine; |
|
| 13 | -use App\Classes\SitemapGenerator; |
|
| 14 | 11 | use App\Classes\Interfaces\Sitemap; |
| 15 | 12 | use App\Classes\Repositories\PageRepository; |
| 13 | +use App\Classes\SitemapGenerator; |
|
| 14 | +use App\Model\Page; |
|
| 15 | +use App\Plugins\PluginEngine; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Class UserController. |