diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 842861ae..c7f5b618 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -19,7 +19,7 @@ class Kernel extends ConsoleKernel /** * Define the application's command schedule. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule + * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 2cada242..cf31f542 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -29,7 +29,7 @@ class Handler extends ExceptionHandler /** * Report or log an exception. * - * @param \Throwable $exception + * @param \Throwable $exception * @return void */ public function report(Throwable $exception) @@ -44,8 +44,8 @@ public function report(Throwable $exception) /** * Render an exception into an HTTP response. * - * @param \Illuminate\Http\Request $request - * @param \Throwable $exception + * @param \Illuminate\Http\Request $request + * @param \Throwable $exception * @return \Illuminate\Http\Response * * @throws \Throwable diff --git a/app/Http/Controllers/API/ImageController.php b/app/Http/Controllers/API/ImageController.php index dd9e39e7..2a9620e7 100644 --- a/app/Http/Controllers/API/ImageController.php +++ b/app/Http/Controllers/API/ImageController.php @@ -40,8 +40,9 @@ public function discover() /** * Store a newly created resource in storage. * - * @param Request $request + * @param Request $request * @return JsonResponse + * * @throws Exception|\Exception */ public function store(Request $request) @@ -126,9 +127,10 @@ public function store(Request $request) /** * Delete specific image (api_token is required). * - * @param Request $request + * @param Request $request * @param $pageName * @return JsonResponse + * * @throws Exception|\Exception */ public function delete(Request $request, $pageName) @@ -182,7 +184,7 @@ public function delete(Request $request, $pageName) /** * Show specific image (api_token may required). * - * @param Request $request + * @param Request $request * @param $id * @return Image|Builder|Model|JsonResponse */ diff --git a/app/Http/Controllers/API/UserController.php b/app/Http/Controllers/API/UserController.php index b29860fd..2af402a1 100644 --- a/app/Http/Controllers/API/UserController.php +++ b/app/Http/Controllers/API/UserController.php @@ -13,7 +13,7 @@ class UserController extends Controller /** * Return user private image. * - * @param Request $request + * @param Request $request * @param $username * @return JsonResponse */ @@ -54,7 +54,7 @@ public function all(Request $request, $username) /** * Return user discover image. * - * @param Request $request + * @param Request $request * @param $username * @return JsonResponse */ @@ -79,7 +79,7 @@ public function discover(Request $request, $username) /** * Return user public image. * - * @param Request $request + * @param Request $request * @param $username * @return JsonResponse */ @@ -121,7 +121,7 @@ public function public(Request $request, $username) /** * Return user private image. * - * @param Request $request + * @param Request $request * @param $username * @return JsonResponse */ @@ -163,7 +163,7 @@ public function private(Request $request, $username) /** * Return site stats. * - * @param Request $request + * @param Request $request * @param $username * @return array|JsonResponse */ diff --git a/app/Http/Controllers/Admin/AlbumCrudController.php b/app/Http/Controllers/Admin/AlbumCrudController.php index b4814a2e..62737635 100644 --- a/app/Http/Controllers/Admin/AlbumCrudController.php +++ b/app/Http/Controllers/Admin/AlbumCrudController.php @@ -8,6 +8,7 @@ /** * Class CrudAlbumCrudController. + * * @property-read CrudPanel $crud */ class AlbumCrudController extends CrudController diff --git a/app/Http/Controllers/Admin/DomainCrudController.php b/app/Http/Controllers/Admin/DomainCrudController.php index cf980d12..9079b818 100644 --- a/app/Http/Controllers/Admin/DomainCrudController.php +++ b/app/Http/Controllers/Admin/DomainCrudController.php @@ -8,6 +8,7 @@ /** * Class DomainCrudController. + * * @property-read CrudPanel $crud */ class DomainCrudController extends CrudController diff --git a/app/Http/Controllers/Admin/ImageCrudController.php b/app/Http/Controllers/Admin/ImageCrudController.php index 5bc7f931..ea04d56b 100644 --- a/app/Http/Controllers/Admin/ImageCrudController.php +++ b/app/Http/Controllers/Admin/ImageCrudController.php @@ -8,6 +8,7 @@ /** * Class ImageCrudController. + * * @property-read CrudPanel $crud */ class ImageCrudController extends CrudController diff --git a/app/Http/Controllers/Admin/UserCrudController.php b/app/Http/Controllers/Admin/UserCrudController.php index 0c9a5309..faeb54ce 100644 --- a/app/Http/Controllers/Admin/UserCrudController.php +++ b/app/Http/Controllers/Admin/UserCrudController.php @@ -8,6 +8,7 @@ /** * Class UserCrudController. + * * @property-read CrudPanel $crud */ class UserCrudController extends CrudController diff --git a/app/Http/Controllers/AlbumController.php b/app/Http/Controllers/AlbumController.php index becd0da1..9eaa917c 100644 --- a/app/Http/Controllers/AlbumController.php +++ b/app/Http/Controllers/AlbumController.php @@ -34,7 +34,7 @@ public function create() /** * Store a newly created resource in storage. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) @@ -45,7 +45,7 @@ public function store(Request $request) /** * Display the specified resource. * - * @param int $id + * @param int $id * @return \Illuminate\Http\Response */ public function show(Album $album) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 16e22e0f..42d13195 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -45,7 +45,7 @@ public function __construct() /** * Get a validator for an incoming registration request. * - * @param array $data + * @param array $data * @return \Illuminate\Contracts\Validation\Validator */ protected function validator(array $data) @@ -60,7 +60,7 @@ protected function validator(array $data) /** * Create a new user instance after a valid registration. * - * @param array $data + * @param array $data * @return \App\User */ protected function create(array $data) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 5b4515fa..19eb2d5d 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -9,7 +9,6 @@ use App\Rules\ValidImageDomainRule; use App\User; use Illuminate\Http\Request; -use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; diff --git a/app/Http/Livewire/AlbumsGrid.php b/app/Http/Livewire/AlbumsGrid.php index da8cfd57..db32b07a 100644 --- a/app/Http/Livewire/AlbumsGrid.php +++ b/app/Http/Livewire/AlbumsGrid.php @@ -54,11 +54,10 @@ public function paginationView() /** * Paginate collection. * - * @param array|Collection $items - * @param int $perPage - * @param int $page - * @param array $options - * + * @param array|Collection $items + * @param int $perPage + * @param int $page + * @param array $options * @return LengthAwarePaginator */ public function paginate($items, $perPage = 20, $page = null, $options = []) diff --git a/app/Http/Livewire/CreateAlbum.php b/app/Http/Livewire/CreateAlbum.php index ec841484..3d0db751 100644 --- a/app/Http/Livewire/CreateAlbum.php +++ b/app/Http/Livewire/CreateAlbum.php @@ -60,11 +60,10 @@ public function paginationView() /** * Paginate collection. * - * @param array|Collection $items - * @param int $perPage - * @param int $page - * @param array $options - * + * @param array|Collection $items + * @param int $perPage + * @param int $page + * @param array $options * @return LengthAwarePaginator */ public function paginate($items, $perPage = 28, $page = null, $options = []) diff --git a/app/Http/Livewire/ImagesGrid.php b/app/Http/Livewire/ImagesGrid.php index d9755cd6..b2460932 100644 --- a/app/Http/Livewire/ImagesGrid.php +++ b/app/Http/Livewire/ImagesGrid.php @@ -56,11 +56,10 @@ public function paginationView() /** * Paginate collection. * - * @param array|Collection $items - * @param int $perPage - * @param int $page - * @param array $options - * + * @param array|Collection $items + * @param int $perPage + * @param int $page + * @param array $options * @return LengthAwarePaginator */ public function paginate($items, $perPage = 20, $page = null, $options = []) diff --git a/app/Http/Livewire/UserAlbums.php b/app/Http/Livewire/UserAlbums.php index be101cf7..23d59aad 100644 --- a/app/Http/Livewire/UserAlbums.php +++ b/app/Http/Livewire/UserAlbums.php @@ -3,11 +3,9 @@ namespace App\Http\Livewire; use App\Album; -use Illuminate\Http\Request; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Pagination\Paginator; use Illuminate\Support\Collection; -use Illuminate\Support\Facades\Auth; use Livewire\Component; use Livewire\WithPagination; @@ -57,11 +55,10 @@ public function paginationView() /** * Paginate collection. * - * @param array|Collection $items - * @param int $perPage - * @param int $page - * @param array $options - * + * @param array|Collection $items + * @param int $perPage + * @param int $page + * @param array $options * @return LengthAwarePaginator */ public function paginate($items, $perPage = 20, $page = null, $options = []) diff --git a/app/Http/Livewire/UserGallery.php b/app/Http/Livewire/UserGallery.php index 48717bbc..a13f7081 100644 --- a/app/Http/Livewire/UserGallery.php +++ b/app/Http/Livewire/UserGallery.php @@ -3,11 +3,9 @@ namespace App\Http\Livewire; use App\Image; -use Illuminate\Http\Request; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Pagination\Paginator; use Illuminate\Support\Collection; -use Illuminate\Support\Facades\Auth; use Livewire\Component; use Livewire\WithPagination; @@ -57,11 +55,10 @@ public function paginationView() /** * Paginate collection. * - * @param array|Collection $items - * @param int $perPage - * @param int $page - * @param array $options - * + * @param array|Collection $items + * @param int $perPage + * @param int $page + * @param array $options * @return LengthAwarePaginator */ public function paginate($items, $perPage = 20, $page = null, $options = []) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index ff9e8d25..704089a7 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -9,7 +9,7 @@ class Authenticate extends Middleware /** * Get the path the user should be redirected to when they are not authenticated. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * @return string|null */ protected function redirectTo($request) diff --git a/app/Http/Middleware/CheckIfAdmin.php b/app/Http/Middleware/CheckIfAdmin.php index a1c6de04..b189305f 100644 --- a/app/Http/Middleware/CheckIfAdmin.php +++ b/app/Http/Middleware/CheckIfAdmin.php @@ -17,7 +17,6 @@ class CheckIfAdmin * is an admin, and not a regular user. * * @param [type] $user [description] - * * @return bool [description] */ private function checkIfUserIsAdmin($user) @@ -30,7 +29,6 @@ private function checkIfUserIsAdmin($user) * Answer to unauthorized access request. * * @param [type] $request [description] - * * @return [type] [description] */ private function respondToUnauthorizedRequest($request) @@ -45,9 +43,8 @@ private function respondToUnauthorizedRequest($request) /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * + * @param \Illuminate\Http\Request $request + * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 22dc48cf..2395ddcc 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -11,9 +11,9 @@ class RedirectIfAuthenticated /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @param string|null $guard + * @param \Illuminate\Http\Request $request + * @param \Closure $next + * @param string|null $guard * @return mixed */ public function handle($request, Closure $next, $guard = null) diff --git a/app/Http/Services/DiscordWebhook.php b/app/Http/Services/DiscordWebhook.php index 40eb5353..291874de 100644 --- a/app/Http/Services/DiscordWebhook.php +++ b/app/Http/Services/DiscordWebhook.php @@ -18,6 +18,7 @@ public function __construct($user, $image) /** * @return void + * * @throws \Exception */ public function sendWebhook() diff --git a/app/Http/Services/ImageIsPublic.php b/app/Http/Services/ImageIsPublic.php index 397e8917..fb7b6b45 100644 --- a/app/Http/Services/ImageIsPublic.php +++ b/app/Http/Services/ImageIsPublic.php @@ -18,6 +18,7 @@ public function __construct($user, $isApi) /** * @return int + * * @throws \Exception */ public function imageState() diff --git a/app/Observers/ImageObserver.php b/app/Observers/ImageObserver.php index d82fb076..0aef1075 100644 --- a/app/Observers/ImageObserver.php +++ b/app/Observers/ImageObserver.php @@ -10,7 +10,7 @@ class ImageObserver /** * Handle the image "created" event. * - * @param \App\Image $image + * @param \App\Image $image * @return void */ public function created(Image $image) @@ -21,7 +21,7 @@ public function created(Image $image) /** * Handle the image "updated" event. * - * @param \App\Image $image + * @param \App\Image $image * @return void */ public function updated(Image $image) @@ -32,7 +32,7 @@ public function updated(Image $image) /** * Handle the image "deleted" event. * - * @param \App\Image $image + * @param \App\Image $image * @return void */ public function deleted(Image $image) @@ -43,7 +43,7 @@ public function deleted(Image $image) /** * Handle the image "restored" event. * - * @param \App\Image $image + * @param \App\Image $image * @return void */ public function restored(Image $image) @@ -54,7 +54,7 @@ public function restored(Image $image) /** * Handle the image "force deleted" event. * - * @param \App\Image $image + * @param \App\Image $image * @return void */ public function forceDeleted(Image $image) diff --git a/app/Observers/UserObserver.php b/app/Observers/UserObserver.php index 637c63b0..e8abf4c1 100644 --- a/app/Observers/UserObserver.php +++ b/app/Observers/UserObserver.php @@ -10,7 +10,7 @@ class UserObserver /** * Handle the user "created" event. * - * @param \App\User $user + * @param \App\User $user * @return void */ public function created(User $user) @@ -22,7 +22,7 @@ public function created(User $user) /** * Handle the user "updated" event. * - * @param \App\User $user + * @param \App\User $user * @return void */ public function updated(User $user) @@ -35,7 +35,7 @@ public function updated(User $user) /** * Handle the user "deleted" event. * - * @param \App\User $user + * @param \App\User $user * @return void */ public function deleted(User $user) @@ -48,7 +48,7 @@ public function deleted(User $user) /** * Handle the user "restored" event. * - * @param \App\User $user + * @param \App\User $user * @return void */ public function restored(User $user) @@ -59,7 +59,7 @@ public function restored(User $user) /** * Handle the user "force deleted" event. * - * @param \App\User $user + * @param \App\User $user * @return void */ public function forceDeleted(User $user) diff --git a/app/Rules/ArrayAtLeastOneRequired.php b/app/Rules/ArrayAtLeastOneRequired.php index 04fa31ca..ca1491d0 100644 --- a/app/Rules/ArrayAtLeastOneRequired.php +++ b/app/Rules/ArrayAtLeastOneRequired.php @@ -21,8 +21,8 @@ public function __construct($result) /** * Determine if the validation rule passes. * - * @param string $attribute - * @param mixed $value + * @param string $attribute + * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/app/Rules/MatchOldPassword.php b/app/Rules/MatchOldPassword.php index f4e095bb..dcd82b3b 100644 --- a/app/Rules/MatchOldPassword.php +++ b/app/Rules/MatchOldPassword.php @@ -10,8 +10,8 @@ class MatchOldPassword implements Rule /** * Determine if the validation rule passes. * - * @param string $attribute - * @param mixed $value + * @param string $attribute + * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/app/Rules/ValidDiscordWebhookRule.php b/app/Rules/ValidDiscordWebhookRule.php index 13ca2c24..f4fce240 100644 --- a/app/Rules/ValidDiscordWebhookRule.php +++ b/app/Rules/ValidDiscordWebhookRule.php @@ -19,8 +19,8 @@ public function __construct() /** * Determine if the validation rule passes. * - * @param string $attribute - * @param mixed $value + * @param string $attribute + * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/app/Rules/ValidImageDomainRule.php b/app/Rules/ValidImageDomainRule.php index 77d6c23f..3c674cc3 100644 --- a/app/Rules/ValidImageDomainRule.php +++ b/app/Rules/ValidImageDomainRule.php @@ -20,8 +20,8 @@ public function __construct() /** * Determine if the validation rule passes. * - * @param string $attribute - * @param mixed $value + * @param string $attribute + * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/app/Rules/ValidImageUrlRule.php b/app/Rules/ValidImageUrlRule.php index 6418a964..f321b645 100644 --- a/app/Rules/ValidImageUrlRule.php +++ b/app/Rules/ValidImageUrlRule.php @@ -21,8 +21,8 @@ public function __construct($newValue) /** * Determine if the validation rule passes. * - * @param string $attribute - * @param mixed $value + * @param string $attribute + * @param mixed $value * @return bool */ public function passes($attribute, $value)