From 2cbe5d0ff8517f298aa308fd364eaea6be60edba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 22:17:17 +0000 Subject: [PATCH 1/2] Bump laminas/laminas-diactoros from 2.3.0 to 2.13.0 Bumps [laminas/laminas-diactoros](https://github.com/laminas/laminas-diactoros) from 2.3.0 to 2.13.0. - [Release notes](https://github.com/laminas/laminas-diactoros/releases) - [Commits](https://github.com/laminas/laminas-diactoros/compare/2.3.0...2.13.0) --- updated-dependencies: - dependency-name: laminas/laminas-diactoros dependency-type: indirect ... Signed-off-by: dependabot[bot] --- composer.lock | 111 ++++++++++++++++++-------------------------------- 1 file changed, 39 insertions(+), 72 deletions(-) mode change 100755 => 100644 composer.lock diff --git a/composer.lock b/composer.lock old mode 100755 new mode 100644 index b9aba809..6f3e2360 --- a/composer.lock +++ b/composer.lock @@ -1,10 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "28b5f24c3d2f9c089228950f6ea0432e", + "content-hash": "791a07b4ac8a7f75fb53f566fd3f7a00", "packages": [ { "name": "albertcht/invisible-recaptcha", @@ -1907,49 +1907,46 @@ }, { "name": "laminas/laminas-diactoros", - "version": "2.3.0", + "version": "2.13.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-diactoros.git", - "reference": "5ab185dba63ec655a2380c97711b09adc7061f89" + "reference": "34ba65010be9aa74e159d168c5ecfa5c01e4d956" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/5ab185dba63ec655a2380c97711b09adc7061f89", - "reference": "5ab185dba63ec655a2380c97711b09adc7061f89", + "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/34ba65010be9aa74e159d168c5ecfa5c01e4d956", + "reference": "34ba65010be9aa74e159d168c5ecfa5c01e4d956", "shasum": "" }, "require": { - "laminas/laminas-zendframework-bridge": "^1.0", - "php": "^7.1", + "php": "^7.3 || ~8.0.0 || ~8.1.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.0" }, "conflict": { - "phpspec/prophecy": "<1.9.0" + "phpspec/prophecy": "<1.9.0", + "zendframework/zend-diactoros": "*" }, "provide": { "psr/http-factory-implementation": "1.0", "psr/http-message-implementation": "1.0" }, - "replace": { - "zendframework/zend-diactoros": "^2.2.1" - }, "require-dev": { "ext-curl": "*", "ext-dom": "*", + "ext-gd": "*", "ext-libxml": "*", - "http-interop/http-factory-tests": "^0.5.0", - "laminas/laminas-coding-standard": "~1.0.0", - "php-http/psr7-integration-tests": "^1.0", - "phpunit/phpunit": "^7.5.18" + "http-interop/http-factory-tests": "^0.9.0", + "laminas/laminas-coding-standard": "~2.3.0", + "php-http/psr7-integration-tests": "^1.1.1", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "psalm/plugin-phpunit": "^0.17.0", + "vimeo/psalm": "^4.24.0" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev", - "dev-develop": "2.4.x-dev" - }, "laminas": { "config-provider": "Laminas\\Diactoros\\ConfigProvider", "module": "Laminas\\Diactoros" @@ -1988,61 +1985,24 @@ "http", "laminas", "psr", + "psr-17", "psr-7" ], - "time": "2020-04-27T17:07:01+00:00" - }, - { - "name": "laminas/laminas-zendframework-bridge", - "version": "1.0.4", - "source": { - "type": "git", - "url": "https://github.com/laminas/laminas-zendframework-bridge.git", - "reference": "fcd87520e4943d968557803919523772475e8ea3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/fcd87520e4943d968557803919523772475e8ea3", - "reference": "fcd87520e4943d968557803919523772475e8ea3", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5 || ^8.1", - "squizlabs/php_codesniffer": "^3.5" + "support": { + "chat": "https://laminas.dev/chat", + "docs": "https://docs.laminas.dev/laminas-diactoros/", + "forum": "https://discourse.laminas.dev", + "issues": "https://github.com/laminas/laminas-diactoros/issues", + "rss": "https://github.com/laminas/laminas-diactoros/releases.atom", + "source": "https://github.com/laminas/laminas-diactoros" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev", - "dev-develop": "1.1.x-dev" - }, - "laminas": { - "module": "Laminas\\ZendFrameworkBridge" - } - }, - "autoload": { - "files": [ - "src/autoload.php" - ], - "psr-4": { - "Laminas\\ZendFrameworkBridge\\": "src//" + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" ], - "description": "Alias legacy ZF class names to Laminas Project equivalents.", - "keywords": [ - "ZendFramework", - "autoloading", - "laminas", - "zf" - ], - "time": "2020-05-20T16:45:56+00:00" + "time": "2022-07-07T12:31:03+00:00" }, { "name": "langleyfoxall/laravel-nist-password-rules", @@ -4068,6 +4028,9 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, "time": "2019-04-30T12:38:16+00:00" }, { @@ -4118,6 +4081,9 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, "time": "2016-08-06T14:39:51+00:00" }, { @@ -11612,7 +11578,8 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^7.2" + "php": "^7.3" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "2.3.0" } From 927f4c1cca4a115e386458e9279d3e2414262acd Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 27 Jul 2022 22:20:32 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- .../Backend/Auth/User/UserConfirmed.php | 2 +- app/Events/Backend/Auth/User/UserCreated.php | 2 +- .../Backend/Auth/User/UserDeactivated.php | 2 +- app/Events/Backend/Auth/User/UserDeleted.php | 2 +- .../Backend/Auth/User/UserPasswordChanged.php | 2 +- .../Auth/User/UserPermanentlyDeleted.php | 2 +- .../Backend/Auth/User/UserReactivated.php | 2 +- app/Events/Backend/Auth/User/UserRestored.php | 2 +- .../Backend/Auth/User/UserSocialDeleted.php | 2 +- .../Backend/Auth/User/UserUnconfirmed.php | 2 +- app/Events/Backend/Auth/User/UserUpdated.php | 2 +- app/Exceptions/GeneralException.php | 6 +- app/Exceptions/Handler.php | 14 ++-- app/Exceptions/ReportableException.php | 6 +- app/Helpers/General/HtmlHelper.php | 37 ++++------ app/Helpers/General/TimezoneHelper.php | 6 +- app/Helpers/Global/HtmlHelper.php | 33 ++++----- app/Helpers/helper.php | 1 - .../Composers/Backend/SidebarComposer.php | 5 +- app/Http/Composers/GlobalComposer.php | 2 +- app/Http/Controllers/Api/V1/APIController.php | 30 +++----- .../Api/V1/BlogCategoriesController.php | 21 +++--- .../Controllers/Api/V1/BlogTagsController.php | 21 +++--- .../Controllers/Api/V1/BlogsController.php | 17 ++--- .../Controllers/Api/V1/FaqsController.php | 19 ++--- .../Controllers/Api/V1/PagesController.php | 19 ++--- .../Permission/PermissionTableController.php | 5 +- .../Auth/Permission/PermissionsController.php | 26 +++---- .../Backend/Auth/Role/RoleController.php | 25 +++---- .../Backend/Auth/Role/RoleTableController.php | 5 +- .../Auth/User/UserAccessController.php | 7 +- .../Auth/User/UserConfirmationController.php | 19 +++-- .../Backend/Auth/User/UserController.php | 34 ++++----- .../Auth/User/UserPasswordController.php | 13 ++-- .../Auth/User/UserSessionController.php | 5 +- .../Auth/User/UserSocialController.php | 10 +-- .../Auth/User/UserStatusController.php | 28 ++++---- .../Backend/Auth/User/UserTableController.php | 5 +- .../BlogCategoriesController.php | 23 +++--- .../BlogCategoriesTableController.php | 5 +- .../Backend/BlogTags/BlogTagsController.php | 25 +++---- .../BlogTags/BlogTagsTableController.php | 5 +- .../Backend/Blogs/BlogsController.php | 26 +++---- .../Backend/Blogs/BlogsTableController.php | 5 +- .../Backend/DashboardController.php | 2 +- .../EmailTemplatesController.php | 24 +++---- .../EmailTemplatesTableController.php | 5 +- .../Backend/Faqs/FaqsController.php | 26 +++---- .../Backend/Faqs/FaqsTableController.php | 5 +- .../Backend/Pages/PagesController.php | 26 +++---- .../Backend/Pages/PagesTableController.php | 5 +- .../Auth/ConfirmAccountController.php | 6 +- .../Frontend/Auth/LoginController.php | 9 ++- .../Auth/PasswordExpiredController.php | 6 +- .../Frontend/Auth/RegisterController.php | 6 +- .../Frontend/Auth/ResetPasswordController.php | 5 +- .../Frontend/Auth/SocialLoginController.php | 11 ++- .../Auth/UpdatePasswordController.php | 6 +- .../Frontend/ContactController.php | 3 +- .../Frontend/User/ProfileController.php | 6 +- app/Http/Controllers/LanguageController.php | 1 - app/Http/Middleware/CheckForReadOnlyMode.php | 5 +- app/Http/Middleware/LocaleMiddleware.php | 5 +- app/Http/Middleware/PasswordExpires.php | 6 +- app/Http/Middleware/SecureHeaders.php | 1 - app/Http/Middleware/ToBeLoggedOut.php | 5 +- app/Http/Resources/BlogCategoriesResource.php | 1 - app/Http/Resources/BlogTagsResource.php | 1 - app/Http/Resources/BlogsResource.php | 1 - app/Http/Resources/FaqsResource.php | 1 - app/Http/Resources/PagesResource.php | 1 - app/Http/Resources/UserResource.php | 1 - .../Auth/Permission/CreateResponse.php | 5 +- .../Backend/Auth/Permission/EditResponse.php | 5 +- .../Backend/Auth/Role/CreateResponse.php | 7 +- .../Backend/Auth/Role/EditResponse.php | 7 +- .../Backend/BlogCategory/EditResponse.php | 5 +- .../Backend/BlogTag/EditResponse.php | 5 +- .../Responses/Backend/Page/EditResponse.php | 5 +- app/Http/Responses/ViewResponse.php | 7 +- .../Permission/PermissionEventListener.php | 2 +- .../Backend/Auth/Role/RoleEventListener.php | 2 +- .../Backend/Auth/User/UserEventListener.php | 2 +- .../BlogCategoryEventListener.php | 2 +- .../Backend/BlogTags/BlogTagEventListener.php | 2 +- .../Backend/Blogs/BlogEventListener.php | 2 +- .../EmailTemplateEventListener.php | 2 +- .../Backend/Faqs/FaqEventListener.php | 2 +- .../Backend/Pages/PageEventListener.php | 2 +- .../Frontend/Auth/UserEventListener.php | 2 +- app/Mail/Frontend/Contact/SendContact.php | 2 +- app/Models/Auth/BaseUser.php | 5 +- app/Models/Auth/Traits/Access/RoleAccess.php | 10 +-- app/Models/Auth/Traits/Access/UserAccess.php | 28 +++----- .../Auth/Traits/Methods/UserMethods.php | 5 +- app/Models/Auth/Traits/Scopes/RoleScopes.php | 3 +- app/Models/Auth/Traits/Scopes/UserScopes.php | 6 +- .../Auth/Traits/SendUserPasswordReset.php | 2 +- app/Models/BaseModel.php | 6 +- app/Models/Traits/Uuid.php | 1 - .../Backend/Auth/UserAccountActive.php | 6 +- .../Frontend/Auth/UserNeedsConfirmation.php | 6 +- .../Frontend/Auth/UserNeedsPasswordReset.php | 6 +- app/Observers/User/UserObserver.php | 2 +- .../Auth/Permission/PermissionRepository.php | 15 ++-- .../Backend/Auth/PermissionRepository.php | 15 ++-- .../Backend/Auth/RoleRepository.php | 16 ++--- .../Backend/Auth/SocialRepository.php | 6 +- .../Backend/Auth/UserRepository.php | 70 +++++++++---------- .../Backend/BlogCategoriesRepository.php | 13 ++-- .../Backend/BlogTagsRepository.php | 13 ++-- app/Repositories/Backend/BlogsRepository.php | 26 +++---- .../Backend/EmailTemplatesRepository.php | 21 +++--- app/Repositories/Backend/FaqsRepository.php | 15 ++-- app/Repositories/Backend/PagesRepository.php | 15 ++-- app/Repositories/BaseRepository.php | 16 ++--- .../Frontend/Auth/UserRepository.php | 27 ++++--- app/Services/Access.php | 17 ++--- database/seeds/Auth/RoleTableSeeder.php | 2 +- database/seeds/Auth/UserTableSeeder.php | 2 +- database/seeds/Traits/TruncateTable.php | 3 +- .../Frontend/UpdateUserAccountTest.php | 3 +- .../Feature/Frontend/UserRegistrationTest.php | 3 +- tests/TestCase.php | 6 +- tests/Unit/UserRepositoryTest.php | 12 ++-- 125 files changed, 490 insertions(+), 690 deletions(-) diff --git a/app/Events/Backend/Auth/User/UserConfirmed.php b/app/Events/Backend/Auth/User/UserConfirmed.php index bc2ffc85..3e5341c6 100755 --- a/app/Events/Backend/Auth/User/UserConfirmed.php +++ b/app/Events/Backend/Auth/User/UserConfirmed.php @@ -18,7 +18,7 @@ class UserConfirmed public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserCreated.php b/app/Events/Backend/Auth/User/UserCreated.php index 4f83ab47..becb469d 100755 --- a/app/Events/Backend/Auth/User/UserCreated.php +++ b/app/Events/Backend/Auth/User/UserCreated.php @@ -18,7 +18,7 @@ class UserCreated public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserDeactivated.php b/app/Events/Backend/Auth/User/UserDeactivated.php index d08b3e3d..c784c36c 100755 --- a/app/Events/Backend/Auth/User/UserDeactivated.php +++ b/app/Events/Backend/Auth/User/UserDeactivated.php @@ -18,7 +18,7 @@ class UserDeactivated public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserDeleted.php b/app/Events/Backend/Auth/User/UserDeleted.php index 8f1f2b5c..d0807127 100755 --- a/app/Events/Backend/Auth/User/UserDeleted.php +++ b/app/Events/Backend/Auth/User/UserDeleted.php @@ -18,7 +18,7 @@ class UserDeleted public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserPasswordChanged.php b/app/Events/Backend/Auth/User/UserPasswordChanged.php index fa74d7a4..cb431034 100755 --- a/app/Events/Backend/Auth/User/UserPasswordChanged.php +++ b/app/Events/Backend/Auth/User/UserPasswordChanged.php @@ -18,7 +18,7 @@ class UserPasswordChanged public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserPermanentlyDeleted.php b/app/Events/Backend/Auth/User/UserPermanentlyDeleted.php index 6c1dd192..22cfdd97 100755 --- a/app/Events/Backend/Auth/User/UserPermanentlyDeleted.php +++ b/app/Events/Backend/Auth/User/UserPermanentlyDeleted.php @@ -18,7 +18,7 @@ class UserPermanentlyDeleted public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserReactivated.php b/app/Events/Backend/Auth/User/UserReactivated.php index e075b7bf..dac5d89e 100755 --- a/app/Events/Backend/Auth/User/UserReactivated.php +++ b/app/Events/Backend/Auth/User/UserReactivated.php @@ -18,7 +18,7 @@ class UserReactivated public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserRestored.php b/app/Events/Backend/Auth/User/UserRestored.php index b1e1e60c..ca6ced27 100755 --- a/app/Events/Backend/Auth/User/UserRestored.php +++ b/app/Events/Backend/Auth/User/UserRestored.php @@ -18,7 +18,7 @@ class UserRestored public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserSocialDeleted.php b/app/Events/Backend/Auth/User/UserSocialDeleted.php index 81e7a260..2b096b3f 100755 --- a/app/Events/Backend/Auth/User/UserSocialDeleted.php +++ b/app/Events/Backend/Auth/User/UserSocialDeleted.php @@ -25,7 +25,7 @@ class UserSocialDeleted /** * UserSocialDeleted constructor. * - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user * @param $social */ public function __construct(User $user, $social) diff --git a/app/Events/Backend/Auth/User/UserUnconfirmed.php b/app/Events/Backend/Auth/User/UserUnconfirmed.php index 56bcc41c..b0c03258 100755 --- a/app/Events/Backend/Auth/User/UserUnconfirmed.php +++ b/app/Events/Backend/Auth/User/UserUnconfirmed.php @@ -18,7 +18,7 @@ class UserUnconfirmed public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Events/Backend/Auth/User/UserUpdated.php b/app/Events/Backend/Auth/User/UserUpdated.php index b05b5ea2..6257564c 100755 --- a/app/Events/Backend/Auth/User/UserUpdated.php +++ b/app/Events/Backend/Auth/User/UserUpdated.php @@ -18,7 +18,7 @@ class UserUpdated public $user; /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user */ public function __construct(User $user) { diff --git a/app/Exceptions/GeneralException.php b/app/Exceptions/GeneralException.php index 0b2ee32c..fe4b0f83 100755 --- a/app/Exceptions/GeneralException.php +++ b/app/Exceptions/GeneralException.php @@ -18,9 +18,9 @@ class GeneralException extends Exception /** * GeneralException constructor. * - * @param string $message - * @param int $code - * @param Throwable|null $previous + * @param string $message + * @param int $code + * @param Throwable|null $previous */ public function __construct($message = '', $code = 0, Throwable $previous = null) { diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 97a2d4cc..9377e0ec 100755 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -41,10 +41,10 @@ class Handler extends ExceptionHandler /** * Report or log an exception. * - * @param Exception $exception + * @param Exception $exception + * @return mixed|void * * @throws Exception - * @return mixed|void */ public function report(Exception $exception) { @@ -56,8 +56,9 @@ public function report(Exception $exception) * * @param \Illuminate\Http\Request $request * @param \Exception $exception - * @throws \Exception * @return \Symfony\Component\HttpFoundation\Response + * + * @throws \Exception */ public function render($request, Exception $exception) { @@ -123,7 +124,6 @@ public function getStatusCode() * set the status code. * * @param [type] $statusCode [description] - * * @return statuscode */ public function setStatusCode($statusCode) @@ -137,7 +137,6 @@ public function setStatusCode($statusCode) * respond with error. * * @param $message - * * @return \Illuminate\Http\JsonResponse */ protected function respondWithError($message) @@ -153,9 +152,8 @@ protected function respondWithError($message) /** * Respond. * - * @param array $data - * @param array $headers - * + * @param array $data + * @param array $headers * @return \Illuminate\Http\JsonResponse */ public function respond($data, $headers = []) diff --git a/app/Exceptions/ReportableException.php b/app/Exceptions/ReportableException.php index a246031e..411942b4 100755 --- a/app/Exceptions/ReportableException.php +++ b/app/Exceptions/ReportableException.php @@ -18,9 +18,9 @@ class ReportableException extends Exception /** * GeneralException constructor. * - * @param string $message - * @param int $code - * @param Throwable|null $previous + * @param string $message + * @param int $code + * @param Throwable|null $previous */ public function __construct($message = '', $code = 0, Throwable $previous = null) { diff --git a/app/Helpers/General/HtmlHelper.php b/app/Helpers/General/HtmlHelper.php index 2edf9e2f..7e670557 100755 --- a/app/Helpers/General/HtmlHelper.php +++ b/app/Helpers/General/HtmlHelper.php @@ -20,7 +20,7 @@ class HtmlHelper /** * HtmlHelper constructor. * - * @param UrlGenerator|null $url + * @param UrlGenerator|null $url */ public function __construct(UrlGenerator $url = null) { @@ -28,10 +28,9 @@ public function __construct(UrlGenerator $url = null) } /** - * @param $url - * @param array $attributes - * @param null $secure - * + * @param $url + * @param array $attributes + * @param null $secure * @return mixed */ public function style($url, $attributes = [], $secure = null) @@ -48,10 +47,9 @@ public function style($url, $attributes = [], $secure = null) /** * Generate a link to a JavaScript file. * - * @param string $url - * @param array $attributes - * @param bool $secure - * + * @param string $url + * @param array $attributes + * @param bool $secure * @return \Illuminate\Support\HtmlString */ public function script($url, $attributes = [], $secure = null) @@ -62,10 +60,9 @@ public function script($url, $attributes = [], $secure = null) } /** - * @param $cancel_to - * @param $title - * @param string $classes - * + * @param $cancel_to + * @param $title + * @param string $classes * @return HtmlString */ public function formCancel($cancel_to, $title, $classes = 'btn btn-danger btn-sm') @@ -74,9 +71,8 @@ public function formCancel($cancel_to, $title, $classes = 'btn btn-danger btn-sm } /** - * @param $title - * @param string $classes - * + * @param $title + * @param string $classes * @return HtmlString */ public function formSubmit($title, $classes = 'btn btn-success btn-sm pull-right') @@ -87,8 +83,7 @@ public function formSubmit($title, $classes = 'btn btn-success btn-sm pull-right /** * Build an HTML attribute string from an array. * - * @param array $attributes - * + * @param array $attributes * @return string */ public function attributes($attributes) @@ -109,9 +104,8 @@ public function attributes($attributes) /** * Build a single attribute element. * - * @param string $key - * @param string $value - * + * @param string $key + * @param string $value * @return string */ protected function attributeElement($key, $value) @@ -139,7 +133,6 @@ protected function attributeElement($key, $value) * Transform the string to an Html serializable object. * * @param $html - * * @return \Illuminate\Support\HtmlString */ protected function toHtmlString($html) diff --git a/app/Helpers/General/TimezoneHelper.php b/app/Helpers/General/TimezoneHelper.php index d9126999..057c7f7d 100755 --- a/app/Helpers/General/TimezoneHelper.php +++ b/app/Helpers/General/TimezoneHelper.php @@ -10,9 +10,8 @@ class TimezoneHelper { /** - * @param Carbon $date - * @param string $format - * + * @param Carbon $date + * @param string $format * @return Carbon */ public function convertToLocal(Carbon $date, $format = 'D M j G:i:s T Y'): string @@ -22,7 +21,6 @@ public function convertToLocal(Carbon $date, $format = 'D M j G:i:s T Y'): strin /** * @param $date - * * @return Carbon */ public function convertFromLocal($date): Carbon diff --git a/app/Helpers/Global/HtmlHelper.php b/app/Helpers/Global/HtmlHelper.php index 7bedfbf9..69e60202 100755 --- a/app/Helpers/Global/HtmlHelper.php +++ b/app/Helpers/Global/HtmlHelper.php @@ -4,10 +4,9 @@ if (! function_exists('style')) { /** - * @param $url - * @param array $attributes - * @param null $secure - * + * @param $url + * @param array $attributes + * @param null $secure * @return mixed */ function style($url, $attributes = [], $secure = null) @@ -18,10 +17,9 @@ function style($url, $attributes = [], $secure = null) if (! function_exists('script')) { /** - * @param $url - * @param array $attributes - * @param null $secure - * + * @param $url + * @param array $attributes + * @param null $secure * @return mixed */ function script($url, $attributes = [], $secure = null) @@ -32,10 +30,9 @@ function script($url, $attributes = [], $secure = null) if (! function_exists('form_cancel')) { /** - * @param $cancel_to - * @param $title - * @param string $classes - * + * @param $cancel_to + * @param $title + * @param string $classes * @return mixed */ function form_cancel($cancel_to, $title, $classes = 'btn btn-danger btn-sm') @@ -46,9 +43,8 @@ function form_cancel($cancel_to, $title, $classes = 'btn btn-danger btn-sm') if (! function_exists('form_submit')) { /** - * @param $title - * @param string $classes - * + * @param $title + * @param string $classes * @return mixed */ function form_submit($title, $classes = 'btn btn-success btn-sm pull-right') @@ -61,10 +57,9 @@ function form_submit($title, $classes = 'btn btn-success btn-sm pull-right') /** * Get the active class if the condition is not falsy. * - * @param $condition - * @param string $activeClass - * @param string $inactiveClass - * + * @param $condition + * @param string $activeClass + * @param string $inactiveClass * @return string */ function active_class($condition, $activeClass = 'active', $inactiveClass = '') diff --git a/app/Helpers/helper.php b/app/Helpers/helper.php index efbae8a0..feefc33d 100755 --- a/app/Helpers/helper.php +++ b/app/Helpers/helper.php @@ -107,7 +107,6 @@ function includeRouteFiles($folder) * So we take the original and place that in and send back the path. * * @param $path - * * @return string */ function getRtlCss($path) diff --git a/app/Http/Composers/Backend/SidebarComposer.php b/app/Http/Composers/Backend/SidebarComposer.php index e7318de8..3307da3f 100755 --- a/app/Http/Composers/Backend/SidebarComposer.php +++ b/app/Http/Composers/Backend/SidebarComposer.php @@ -18,7 +18,7 @@ class SidebarComposer /** * SidebarComposer constructor. * - * @param UserRepository $userRepository + * @param UserRepository $userRepository */ public function __construct(UserRepository $userRepository) { @@ -26,8 +26,7 @@ public function __construct(UserRepository $userRepository) } /** - * @param View $view - * + * @param View $view * @return bool|mixed */ public function compose(View $view) diff --git a/app/Http/Composers/GlobalComposer.php b/app/Http/Composers/GlobalComposer.php index 5aec0cd3..1ed9c405 100755 --- a/app/Http/Composers/GlobalComposer.php +++ b/app/Http/Composers/GlobalComposer.php @@ -12,7 +12,7 @@ class GlobalComposer /** * Bind data to the view. * - * @param View $view + * @param View $view */ public function compose(View $view) { diff --git a/app/Http/Controllers/Api/V1/APIController.php b/app/Http/Controllers/Api/V1/APIController.php index d59daf01..18f8811f 100755 --- a/app/Http/Controllers/Api/V1/APIController.php +++ b/app/Http/Controllers/Api/V1/APIController.php @@ -31,7 +31,6 @@ public function getStatusCode() * set the status code. * * @param [type] $statusCode [description] - * * @return statuscode */ public function setStatusCode($statusCode) @@ -44,9 +43,8 @@ public function setStatusCode($statusCode) /** * Respond. * - * @param array $data - * @param array $headers - * + * @param array $data + * @param array $headers * @return \Illuminate\Http\JsonResponse */ public function respond($data, $headers = []) @@ -57,9 +55,8 @@ public function respond($data, $headers = []) /** * respond with pagincation. * - * @param Paginator $items - * @param array $data - * + * @param Paginator $items + * @param array $data * @return \Illuminate\Http\JsonResponse */ public function respondWithPagination($items, $data) @@ -79,8 +76,7 @@ public function respondWithPagination($items, $data) /** * Respond Created. * - * @param string $message - * + * @param string $message * @return \Illuminate\Http\JsonResponse */ public function respondCreated($data) @@ -93,8 +89,7 @@ public function respondCreated($data) /** * Respond Created with data. * - * @param string $message - * + * @param string $message * @return \Illuminate\Http\JsonResponse */ public function respondCreatedWithData($data) @@ -106,7 +101,6 @@ public function respondCreatedWithData($data) * respond with error. * * @param $message - * * @return \Illuminate\Http\JsonResponse */ public function respondWithError($message) @@ -122,8 +116,7 @@ public function respondWithError($message) /** * responsd not found. * - * @param string $message - * + * @param string $message * @return \Illuminate\Http\JsonResponse */ public function respondNotFound($message = 'Not Found') @@ -134,8 +127,7 @@ public function respondNotFound($message = 'Not Found') /** * Respond with error. * - * @param string $message - * + * @param string $message * @return \Illuminate\Http\JsonResponse */ public function respondInternalError($message = 'Internal Error') @@ -146,8 +138,7 @@ public function respondInternalError($message = 'Internal Error') /** * Respond with unauthorized. * - * @param string $message - * + * @param string $message * @return \Illuminate\Http\JsonResponse */ protected function respondUnauthorized($message = 'Unauthorized') @@ -158,8 +149,7 @@ protected function respondUnauthorized($message = 'Unauthorized') /** * Respond with forbidden. * - * @param string $message - * + * @param string $message * @return \Illuminate\Http\JsonResponse */ protected function respondForbidden($message = 'Forbidden') diff --git a/app/Http/Controllers/Api/V1/BlogCategoriesController.php b/app/Http/Controllers/Api/V1/BlogCategoriesController.php index 5669853d..c68fab3f 100755 --- a/app/Http/Controllers/Api/V1/BlogCategoriesController.php +++ b/app/Http/Controllers/Api/V1/BlogCategoriesController.php @@ -53,8 +53,7 @@ public function __construct(BlogCategoriesRepository $repository) * @responseFile status=401 scenario="API token not provided" responses/unauthenticated.json * @responseFile responses/blog-category/blog-category-list.json * - * @param ManageBlogCategoriesRequest $request - * + * @param ManageBlogCategoriesRequest $request * @return \Illuminate\Http\JsonResponse */ public function index(ManageBlogCategoriesRequest $request) @@ -75,9 +74,8 @@ public function index(ManageBlogCategoriesRequest $request) * @responseFile status=401 scenario="API token not provided" responses/unauthenticated.json * @responseFile responses/blog-category/blog-category-show.json * - * @param ManageBlogCategoriesRequest $request - * @param BlogCategory $blogCategory - * + * @param ManageBlogCategoriesRequest $request + * @param BlogCategory $blogCategory * @return \Illuminate\Http\JsonResponse */ public function show(ManageBlogCategoriesRequest $request, BlogCategory $blogCategory) @@ -93,8 +91,7 @@ public function show(ManageBlogCategoriesRequest $request, BlogCategory $blogCat * @responseFile status=401 scenario="API token not provided" responses/unauthenticated.json * @responseFile status=201 responses/blog-category/blog-category-store.json * - * @param StoreBlogCategoriesRequest $request - * + * @param StoreBlogCategoriesRequest $request * @return \Illuminate\Http\JsonResponse */ public function store(StoreBlogCategoriesRequest $request) @@ -117,9 +114,8 @@ public function store(StoreBlogCategoriesRequest $request) * @responseFile status=401 scenario="API token not provided" responses/unauthenticated.json * @responseFile status=200 responses/blog-category/blog-category-update.json * - * @param UpdateBlogCategoriesRequest $request - * @param BlogCategory $blogCategory - * + * @param UpdateBlogCategoriesRequest $request + * @param BlogCategory $blogCategory * @return \Illuminate\Http\JsonResponse */ public function update(UpdateBlogCategoriesRequest $request, BlogCategory $blogCategory) @@ -140,9 +136,8 @@ public function update(UpdateBlogCategoriesRequest $request, BlogCategory $blogC * @responseFile status=401 scenario="API token not provided" responses/unauthenticated.json * @responseFile status=204 scenario="When the record is deleted" responses/blog-category/blog-category-destroy.json * - * @param DeleteBlogCategoriesRequest $request - * @param BlogCategory $blogCategory - * + * @param DeleteBlogCategoriesRequest $request + * @param BlogCategory $blogCategory * @return \Illuminate\Http\JsonResponse */ public function destroy(DeleteBlogCategoriesRequest $request, BlogCategory $blogCategory) diff --git a/app/Http/Controllers/Api/V1/BlogTagsController.php b/app/Http/Controllers/Api/V1/BlogTagsController.php index 649779b5..4f8ba776 100755 --- a/app/Http/Controllers/Api/V1/BlogTagsController.php +++ b/app/Http/Controllers/Api/V1/BlogTagsController.php @@ -53,8 +53,7 @@ public function __construct(BlogTagsRepository $repository) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/blog-tag/blog-tag-list.json * - * @param ManageBlogTagsRequest $request - * + * @param ManageBlogTagsRequest $request * @return \Illuminate\Http\JsonResponse */ public function index(ManageBlogTagsRequest $request) @@ -75,9 +74,8 @@ public function index(ManageBlogTagsRequest $request) * @responseFile status=401 scenario="API token not provided" responses/unauthenticated.json * @responseFile responses/blog-tag/blog-tag-show.json * - * @param ManageBlogTagsRequest $request - * @param BlogTag $blogTag - * + * @param ManageBlogTagsRequest $request + * @param BlogTag $blogTag * @return \Illuminate\Http\JsonResponse */ public function show(ManageBlogTagsRequest $request, BlogTag $blogTag) @@ -93,8 +91,7 @@ public function show(ManageBlogTagsRequest $request, BlogTag $blogTag) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/blog-tag/blog-tag-store.json * - * @param \App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest $request - * + * @param \App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest $request * @return \Illuminate\Http\JsonResponse */ public function store(StoreBlogTagsRequest $request) @@ -115,9 +112,8 @@ public function store(StoreBlogTagsRequest $request) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/blog-tag/blog-tag-update.json * - * @param UpdateBlogTagsRequest $request - * @param BlogTag $blogTag - * + * @param UpdateBlogTagsRequest $request + * @param BlogTag $blogTag * @return \Illuminate\Http\JsonResponse */ public function update(UpdateBlogTagsRequest $request, BlogTag $blogTag) @@ -138,9 +134,8 @@ public function update(UpdateBlogTagsRequest $request, BlogTag $blogTag) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=204 scenario="When the record is deleted" responses/blog-tag/blog-tag-destroy.json * - * @param DeleteBlogTagsRequest $request - * @param BlogTag $blogTag - * + * @param DeleteBlogTagsRequest $request + * @param BlogTag $blogTag * @return \Illuminate\Http\JsonResponse */ public function destroy(DeleteBlogTagsRequest $request, BlogTag $blogTag) diff --git a/app/Http/Controllers/Api/V1/BlogsController.php b/app/Http/Controllers/Api/V1/BlogsController.php index 0a68c799..b84f62fe 100755 --- a/app/Http/Controllers/Api/V1/BlogsController.php +++ b/app/Http/Controllers/Api/V1/BlogsController.php @@ -53,8 +53,7 @@ public function __construct(BlogsRepository $repository) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/blog/blog-list.json * - * @param ManageBlogsRequest $request - * + * @param ManageBlogsRequest $request * @return \Illuminate\Http\JsonResponse */ public function index(ManageBlogsRequest $request) @@ -76,7 +75,6 @@ public function index(ManageBlogsRequest $request) * @responseFile responses/blog/blog-show.json * * @param \App\Models\Blog blog - * * @return \Illuminate\Http\JsonResponse */ public function show(ManageBlogsRequest $request, Blog $blog) @@ -92,8 +90,7 @@ public function show(ManageBlogsRequest $request, Blog $blog) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=201 responses/blog/blog-store.json * - * @param StoreBlogsRequest $request - * + * @param StoreBlogsRequest $request * @return \Illuminate\Http\JsonResponse */ public function store(StoreBlogsRequest $request) @@ -114,9 +111,8 @@ public function store(StoreBlogsRequest $request) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/blog/blog-update.json * - * @param \App\Models\Blog $blog - * @param \App\Http\Requests\Backend\Blogs\UpdateBlogsRequest $request - * + * @param \App\Models\Blog $blog + * @param \App\Http\Requests\Backend\Blogs\UpdateBlogsRequest $request * @return \Illuminate\Http\JsonResponse */ public function update(UpdateBlogsRequest $request, Blog $blog) @@ -135,9 +131,8 @@ public function update(UpdateBlogsRequest $request, Blog $blog) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=204 scenario="When the record is deleted" responses/blog/blog-destroy.json * - * @param DeleteBlogsRequest $request - * @param \App\Models\Blog $blog - * + * @param DeleteBlogsRequest $request + * @param \App\Models\Blog $blog * @return \Illuminate\Http\JsonResponse */ public function destroy(DeleteBlogsRequest $request, Blog $blog) diff --git a/app/Http/Controllers/Api/V1/FaqsController.php b/app/Http/Controllers/Api/V1/FaqsController.php index 2ba51fae..057c4bb2 100755 --- a/app/Http/Controllers/Api/V1/FaqsController.php +++ b/app/Http/Controllers/Api/V1/FaqsController.php @@ -53,8 +53,7 @@ public function __construct(FaqsRepository $repository) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/faq/faq-list.json * - * @param ManageFaqsRequest $request - * + * @param ManageFaqsRequest $request * @return \Illuminate\Http\JsonResponse */ public function index(ManageFaqsRequest $request) @@ -75,9 +74,8 @@ public function index(ManageFaqsRequest $request) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/faq/faq-show.json * - * @param ManageFaqsRequest $request - * @param \App\Models\Faq $faq - * + * @param ManageFaqsRequest $request + * @param \App\Models\Faq $faq * @return \Illuminate\Http\JsonResponse */ public function show(ManageFaqsRequest $request, Faq $faq) @@ -93,8 +91,7 @@ public function show(ManageFaqsRequest $request, Faq $faq) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=201 responses/faq/faq-store.json * - * @param \App\Http\Requests\Backend\Faqs\StoreFaqsRequest $request - * + * @param \App\Http\Requests\Backend\Faqs\StoreFaqsRequest $request * @return \Illuminate\Http\JsonResponse */ public function store(StoreFaqsRequest $request) @@ -115,9 +112,8 @@ public function store(StoreFaqsRequest $request) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/faq/faq-update.json * - * @param \App\Models\Faq $faq - * @param \App\Http\Requests\Backend\Faqs\UpdateFaqsRequest $request - * + * @param \App\Models\Faq $faq + * @param \App\Http\Requests\Backend\Faqs\UpdateFaqsRequest $request * @return \Illuminate\Http\JsonResponse */ public function update(UpdateFaqsRequest $request, Faq $faq) @@ -138,8 +134,7 @@ public function update(UpdateFaqsRequest $request, Faq $faq) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=204 scenario="When the record is deleted" responses/faq/faq-destroy.json * - * @param \App\Models\Faq $faq - * + * @param \App\Models\Faq $faq * @return \Illuminate\Http\JsonResponse */ public function destroy(DeleteFaqsRequest $request, Faq $faq) diff --git a/app/Http/Controllers/Api/V1/PagesController.php b/app/Http/Controllers/Api/V1/PagesController.php index bff6a9a3..502c40cd 100755 --- a/app/Http/Controllers/Api/V1/PagesController.php +++ b/app/Http/Controllers/Api/V1/PagesController.php @@ -53,8 +53,7 @@ public function __construct(PagesRepository $repository) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/page/page-list.json * - * @param \Illuminate\Http\ManagePageRequest $request - * + * @param \Illuminate\Http\ManagePageRequest $request * @return \Illuminate\Http\JsonResponse */ public function index(ManagePageRequest $request) @@ -75,9 +74,8 @@ public function index(ManagePageRequest $request) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/page/page-show.json * - * @param ManagePageRequest $request - * @param \App\Models\Page $page - * + * @param ManagePageRequest $request + * @param \App\Models\Page $page * @return \Illuminate\Http\JsonResponse */ public function show(ManagePageRequest $request, Page $page) @@ -93,8 +91,7 @@ public function show(ManagePageRequest $request, Page $page) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=201 responses/page/page-store.json * - * @param \App\Http\Requests\Backend\Pages\StorePageRequest $request - * + * @param \App\Http\Requests\Backend\Pages\StorePageRequest $request * @return \Illuminate\Http\JsonResponse */ public function store(StorePageRequest $request) @@ -117,9 +114,8 @@ public function store(StorePageRequest $request) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile responses/page/page-update.json * - * @param \App\Models\Page $page - * @param \App\Http\Requests\Backend\Pages\UpdatePageRequest $request - * + * @param \App\Models\Page $page + * @param \App\Http\Requests\Backend\Pages\UpdatePageRequest $request * @return \Illuminate\Http\JsonResponse */ public function update(UpdatePageRequest $request, Page $page) @@ -140,8 +136,7 @@ public function update(UpdatePageRequest $request, Page $page) * @responseFile status=401 scenario="api_key not provided" responses/unauthenticated.json * @responseFile status=204 scenario="When the record is deleted" responses/page/page-destroy.json * - * @param \App\Models\Page $page - * + * @param \App\Models\Page $page * @return \Illuminate\Http\JsonResponse */ public function destroy(DeletePageRequest $request, Page $page) diff --git a/app/Http/Controllers/Backend/Auth/Permission/PermissionTableController.php b/app/Http/Controllers/Backend/Auth/Permission/PermissionTableController.php index 99fa0de9..00a3cd7c 100755 --- a/app/Http/Controllers/Backend/Auth/Permission/PermissionTableController.php +++ b/app/Http/Controllers/Backend/Auth/Permission/PermissionTableController.php @@ -18,7 +18,7 @@ class PermissionTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\PermissionRepository $repository + * @param \App\Repositories\Backend\Auth\PermissionRepository $repository */ public function __construct(PermissionRepository $repository) { @@ -26,8 +26,7 @@ public function __construct(PermissionRepository $repository) } /** - * @param App\Http\Requests\Backend\Auth\Permission\ManagePermissionRequest $request - * + * @param App\Http\Requests\Backend\Auth\Permission\ManagePermissionRequest $request * @return mixed */ public function __invoke(ManagePermissionRequest $request) diff --git a/app/Http/Controllers/Backend/Auth/Permission/PermissionsController.php b/app/Http/Controllers/Backend/Auth/Permission/PermissionsController.php index 81349819..5eb0ba5e 100755 --- a/app/Http/Controllers/Backend/Auth/Permission/PermissionsController.php +++ b/app/Http/Controllers/Backend/Auth/Permission/PermissionsController.php @@ -25,7 +25,7 @@ class PermissionsController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\PermissionRepository $repository + * @param \App\Repositories\Backend\Auth\PermissionRepository $repository */ public function __construct(PermissionRepository $repository) { @@ -34,8 +34,7 @@ public function __construct(PermissionRepository $repository) } /** - * @param ManagePermissionRequest $request - * + * @param ManagePermissionRequest $request * @return \App\Http\Responses\ViewResponse */ public function index(ManagePermissionRequest $request) @@ -44,8 +43,7 @@ public function index(ManagePermissionRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\Permission\CreatePermissionRequest $request - * + * @param \App\Http\Requests\Backend\Auth\Permission\CreatePermissionRequest $request * @return \App\Http\Responses\Backend\Auth\Permission\CreateResponse */ public function create(CreatePermissionRequest $request) @@ -54,8 +52,7 @@ public function create(CreatePermissionRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\Permission\StorePermissionRequest $request - * + * @param \App\Http\Requests\Backend\Auth\Permission\StorePermissionRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StorePermissionRequest $request) @@ -66,9 +63,8 @@ public function store(StorePermissionRequest $request) } /** - * @param \App\Models\Auth\Permission $permission - * @param \App\Http\Requests\Backend\Auth\Permission\EditPermissionRequest $request - * + * @param \App\Models\Auth\Permission $permission + * @param \App\Http\Requests\Backend\Auth\Permission\EditPermissionRequest $request * @return \App\Http\Responses\Backend\Auth\Permission\EditResponse */ public function edit(Permission $permission, EditPermissionRequest $request) @@ -77,9 +73,8 @@ public function edit(Permission $permission, EditPermissionRequest $request) } /** - * @param App\Models\Auth\Permission $permission - * @param \App\Http\Requests\Backend\Auth\Permission\UpdatePermissionRequest $request - * + * @param App\Models\Auth\Permission $permission + * @param \App\Http\Requests\Backend\Auth\Permission\UpdatePermissionRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(Permission $permission, UpdatePermissionRequest $request) @@ -90,9 +85,8 @@ public function update(Permission $permission, UpdatePermissionRequest $request) } /** - * @param App\Models\Auth\Permission $permission - * @param \App\Http\Requests\Backend\Auth\Permission\DeletePermissionRequest $request - * + * @param App\Models\Auth\Permission $permission + * @param \App\Http\Requests\Backend\Auth\Permission\DeletePermissionRequest $request * @return \App\Http\Responses\RedirectResponse */ public function destroy(Permission $permission, DeletePermissionRequest $request) diff --git a/app/Http/Controllers/Backend/Auth/Role/RoleController.php b/app/Http/Controllers/Backend/Auth/Role/RoleController.php index ba90ecf5..0db037e1 100755 --- a/app/Http/Controllers/Backend/Auth/Role/RoleController.php +++ b/app/Http/Controllers/Backend/Auth/Role/RoleController.php @@ -29,8 +29,8 @@ class RoleController extends Controller protected $permissionRepository; /** - * @param \App\Repositories\Backend\Auth\RoleRepository $roleRepository - * @param \App\Repositories\Backend\Auth\PermissionRepository $permissionRepository + * @param \App\Repositories\Backend\Auth\RoleRepository $roleRepository + * @param \App\Repositories\Backend\Auth\PermissionRepository $permissionRepository */ public function __construct(RoleRepository $roleRepository, PermissionRepository $permissionRepository) { @@ -40,8 +40,7 @@ public function __construct(RoleRepository $roleRepository, PermissionRepository } /** - * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request - * + * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request * @return mixed */ public function index(ManageRoleRequest $request) @@ -50,8 +49,7 @@ public function index(ManageRoleRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request - * + * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request * @return \App\Http\Responses\Backend\Auth\Role\CreateResponse */ public function create(ManageRoleRequest $request) @@ -60,8 +58,7 @@ public function create(ManageRoleRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\Role\StoreRoleRequest $request - * + * @param \App\Http\Requests\Backend\Auth\Role\StoreRoleRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StoreRoleRequest $request) @@ -72,9 +69,8 @@ public function store(StoreRoleRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request - * @param \App\Models\Auth\Role $role - * + * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request + * @param \App\Models\Auth\Role $role * @return \App\Http\Responses\Backend\Auth\Role\EditResponse */ public function edit(Role $role, EditRoleRequest $request) @@ -85,7 +81,6 @@ public function edit(Role $role, EditRoleRequest $request) /** * @param \App\Http\Requests\Backend\Auth\RoleUpdateRoleRequest $request * @param \App\Models\Auth\Role $role - * * @return \App\Http\Responses\RedirectResponse */ public function update(Role $role, UpdateRoleRequest $request) @@ -96,11 +91,11 @@ public function update(Role $role, UpdateRoleRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request - * @param \App\Models\Auth\Role $role + * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request + * @param \App\Models\Auth\Role $role + * @return mixed * * @throws \Exception - * @return mixed */ public function destroy(ManageRoleRequest $request, Role $role) { diff --git a/app/Http/Controllers/Backend/Auth/Role/RoleTableController.php b/app/Http/Controllers/Backend/Auth/Role/RoleTableController.php index 3268a411..651979c6 100755 --- a/app/Http/Controllers/Backend/Auth/Role/RoleTableController.php +++ b/app/Http/Controllers/Backend/Auth/Role/RoleTableController.php @@ -18,7 +18,7 @@ class RoleTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\RoleRepository $roles + * @param \App\Repositories\Backend\Auth\RoleRepository $roles */ public function __construct(RoleRepository $repository) { @@ -26,8 +26,7 @@ public function __construct(RoleRepository $repository) } /** - * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request - * + * @param \App\Http\Requests\Backend\Auth\Role\ManageRoleRequest $request * @return mixed */ public function __invoke(ManageRoleRequest $request) diff --git a/app/Http/Controllers/Backend/Auth/User/UserAccessController.php b/app/Http/Controllers/Backend/Auth/User/UserAccessController.php index 06ec8e09..f53d5170 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserAccessController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserAccessController.php @@ -14,12 +14,11 @@ class UserAccessController extends Controller { /** - * @param User $user - * @param ManageUserRequest $request + * @param User $user + * @param ManageUserRequest $request + * @return \Illuminate\Http\RedirectResponse * * @throws GeneralException - * - * @return \Illuminate\Http\RedirectResponse */ public function loginAs(User $user, ManageUserRequest $request) { diff --git a/app/Http/Controllers/Backend/Auth/User/UserConfirmationController.php b/app/Http/Controllers/Backend/Auth/User/UserConfirmationController.php index 020356ab..b1a5110e 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserConfirmationController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserConfirmationController.php @@ -16,7 +16,7 @@ class UserConfirmationController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\UserRepository $repository + * @param \App\Repositories\Backend\Auth\UserRepository $repository */ public function __construct(UserRepository $repository) { @@ -24,9 +24,8 @@ public function __construct(UserRepository $repository) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user * @return mixed */ public function sendConfirmationEmail(ManageUserRequest $request, User $user) @@ -46,11 +45,11 @@ public function sendConfirmationEmail(ManageUserRequest $request, User $user) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function confirm(ManageUserRequest $request, User $user) { @@ -60,11 +59,11 @@ public function confirm(ManageUserRequest $request, User $user) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function unconfirm(ManageUserRequest $request, User $user) { diff --git a/app/Http/Controllers/Backend/Auth/User/UserController.php b/app/Http/Controllers/Backend/Auth/User/UserController.php index 2126f5cc..e7ca4257 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserController.php @@ -26,7 +26,7 @@ class UserController extends Controller protected $roleRepository; /** - * @param \App\Repositories\Backend\Auth\UserRepository $userRepository + * @param \App\Repositories\Backend\Auth\UserRepository $userRepository */ public function __construct(UserRepository $userRepository, RoleRepository $roleRepository) { @@ -36,8 +36,7 @@ public function __construct(UserRepository $userRepository, RoleRepository $role } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request * @return \App\Http\Responses\ViewResponse */ public function index(ManageUserRequest $request) @@ -46,8 +45,7 @@ public function index(ManageUserRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request * @return mixed */ public function create(ManageUserRequest $request) @@ -57,10 +55,10 @@ public function create(ManageUserRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\User\StoreUserRequest $request + * @param \App\Http\Requests\Backend\Auth\User\StoreUserRequest $request + * @return mixed * * @throws \Throwable - * @return mixed */ public function store(StoreUserRequest $request) { @@ -70,9 +68,8 @@ public function store(StoreUserRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user * @return mixed */ public function show(ManageUserRequest $request, User $user) @@ -82,9 +79,8 @@ public function show(ManageUserRequest $request, User $user) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user * @return mixed */ public function edit(ManageUserRequest $request, User $user, PermissionRepository $permissionRepository) @@ -98,12 +94,12 @@ public function edit(ManageUserRequest $request, User $user, PermissionRepositor } /** - * @param \App\Http\Requests\Backend\Auth\User\UpdateUserRequest $request - * @param \App\Models\Auth\User $user + * @param \App\Http\Requests\Backend\Auth\User\UpdateUserRequest $request + * @param \App\Models\Auth\User $user + * @return mixed * * @throws \App\Exceptions\GeneralException * @throws \Throwable - * @return mixed */ public function update(UpdateUserRequest $request, User $user) { @@ -113,11 +109,11 @@ public function update(UpdateUserRequest $request, User $user) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user + * @return mixed * * @throws \Exception - * @return mixed */ public function destroy(ManageUserRequest $request, User $user) { diff --git a/app/Http/Controllers/Backend/Auth/User/UserPasswordController.php b/app/Http/Controllers/Backend/Auth/User/UserPasswordController.php index 5e9fe9d1..59f304ea 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserPasswordController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserPasswordController.php @@ -16,7 +16,7 @@ class UserPasswordController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\UserRepository $userRepository + * @param \App\Repositories\Backend\Auth\UserRepository $userRepository */ public function __construct(UserRepository $repository) { @@ -24,9 +24,8 @@ public function __construct(UserRepository $repository) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user * @return mixed */ public function edit(ManageUserRequest $request, User $user) @@ -35,11 +34,11 @@ public function edit(ManageUserRequest $request, User $user) } /** - * @param \App\Http\Requests\Backend\Auth\User\UpdateUserPasswordRequest $request - * @param \App\Models\Auth\User $user + * @param \App\Http\Requests\Backend\Auth\User\UpdateUserPasswordRequest $request + * @param \App\Models\Auth\User $user + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function update(UpdateUserPasswordRequest $request, User $user) { diff --git a/app/Http/Controllers/Backend/Auth/User/UserSessionController.php b/app/Http/Controllers/Backend/Auth/User/UserSessionController.php index e6e34560..1d90a597 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserSessionController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserSessionController.php @@ -12,9 +12,8 @@ class UserSessionController extends Controller { /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user * @return mixed */ public function clearSession(ManageUserRequest $request, User $user) diff --git a/app/Http/Controllers/Backend/Auth/User/UserSocialController.php b/app/Http/Controllers/Backend/Auth/User/UserSocialController.php index 68276819..72a99af7 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserSocialController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserSocialController.php @@ -14,13 +14,13 @@ class UserSocialController extends Controller { /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Repositories\Backend\Auth\User\SocialRepository $socialRepository - * @param \App\Models\Auth\User $user - * @param \App\Models\Auth\SocialAccount $social + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Repositories\Backend\Auth\User\SocialRepository $socialRepository + * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\SocialAccount $social + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function unlink(ManageUserRequest $request, SocialRepository $socialRepository, User $user, SocialAccount $social) { diff --git a/app/Http/Controllers/Backend/Auth/User/UserStatusController.php b/app/Http/Controllers/Backend/Auth/User/UserStatusController.php index 21d3bd91..93f82ed2 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserStatusController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserStatusController.php @@ -19,7 +19,7 @@ class UserStatusController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\UserRepository $repository + * @param \App\Repositories\Backend\Auth\UserRepository $repository */ public function __construct(UserRepository $repository) { @@ -28,8 +28,7 @@ public function __construct(UserRepository $repository) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request * @return mixed */ public function getDeactivated(ManageUserRequest $request) @@ -39,8 +38,7 @@ public function getDeactivated(ManageUserRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request * @return mixed */ public function getDeleted(ManageUserRequest $request) @@ -49,12 +47,12 @@ public function getDeleted(ManageUserRequest $request) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $user - * @param int $status + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $user + * @param int $status + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function mark(ManageUserRequest $request, User $user, $status) { @@ -68,12 +66,12 @@ public function mark(ManageUserRequest $request, User $user, $status) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $deletedUser + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $deletedUser + * @return mixed * * @throws \App\Exceptions\GeneralException * @throws \Throwable - * @return mixed */ public function delete(ManageUserRequest $request, User $deletedUser) { @@ -83,11 +81,11 @@ public function delete(ManageUserRequest $request, User $deletedUser) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * @param \App\Models\Auth\User $deletedUser + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request + * @param \App\Models\Auth\User $deletedUser + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function restore(ManageUserRequest $request, User $deletedUser) { diff --git a/app/Http/Controllers/Backend/Auth/User/UserTableController.php b/app/Http/Controllers/Backend/Auth/User/UserTableController.php index 20aa7e1d..2ceb0d35 100755 --- a/app/Http/Controllers/Backend/Auth/User/UserTableController.php +++ b/app/Http/Controllers/Backend/Auth/User/UserTableController.php @@ -19,7 +19,7 @@ class UserTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\Auth\UserRepository $repository + * @param \App\Repositories\Backend\Auth\UserRepository $repository */ public function __construct(UserRepository $repository) { @@ -27,8 +27,7 @@ public function __construct(UserRepository $repository) } /** - * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request - * + * @param \App\Http\Requests\Backend\Auth\User\ManageUserRequest $request * @return mixed */ public function __invoke(ManageUserRequest $request) diff --git a/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesController.php b/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesController.php index 32872461..4eac0f44 100755 --- a/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesController.php +++ b/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesController.php @@ -23,7 +23,7 @@ class BlogCategoriesController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\BlogCategoriesRepository $repository + * @param \App\Repositories\Backend\BlogCategoriesRepository $repository */ public function __construct(BlogCategoriesRepository $repository) { @@ -32,8 +32,7 @@ public function __construct(BlogCategoriesRepository $repository) } /** - * @param \App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest $request - * + * @param \App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest $request * @return ViewResponse */ public function index(ManageBlogCategoriesRequest $request) @@ -42,8 +41,7 @@ public function index(ManageBlogCategoriesRequest $request) } /** - * @param \App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest $request - * + * @param \App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest $request * @return \App\Http\Responses\ViewResponse */ public function create(CreateBlogCategoriesRequest $request) @@ -65,9 +63,8 @@ public function store(StoreBlogCategoriesRequest $request) } /** - * @param \App\Models\BlogCategory $blogCategory - * @param \App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest $request - * + * @param \App\Models\BlogCategory $blogCategory + * @param \App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest $request * @return \App\Http\Responses\Backend\BlogCategory\EditResponse */ public function edit(BlogCategory $blogCategory, ManageBlogCategoriesRequest $request) @@ -76,9 +73,8 @@ public function edit(BlogCategory $blogCategory, ManageBlogCategoriesRequest $re } /** - * @param \App\Models\BlogCategory $blogCategory - * @param \App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest $request - * + * @param \App\Models\BlogCategory $blogCategory + * @param \App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(BlogCategory $blogCategory, UpdateBlogCategoriesRequest $request) @@ -89,9 +85,8 @@ public function update(BlogCategory $blogCategory, UpdateBlogCategoriesRequest $ } /** - * @param \App\Models\BlogCategory $blogCategory - * @param \App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest $request - * + * @param \App\Models\BlogCategory $blogCategory + * @param \App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest $request * @return mixed */ public function destroy(BlogCategory $blogCategory, DeleteBlogCategoriesRequest $request) diff --git a/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesTableController.php b/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesTableController.php index 989a581f..bd5782ae 100755 --- a/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesTableController.php +++ b/app/Http/Controllers/Backend/BlogCategories/BlogCategoriesTableController.php @@ -18,7 +18,7 @@ class BlogCategoriesTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\BlogCategories\BlogCategoriesRepository $repository + * @param \App\Repositories\Backend\BlogCategories\BlogCategoriesRepository $repository */ public function __construct(BlogCategoriesRepository $repository) { @@ -26,8 +26,7 @@ public function __construct(BlogCategoriesRepository $repository) } /** - * @param \App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest $request - * + * @param \App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest $request * @return mixed */ public function __invoke(ManageBlogCategoriesRequest $request) diff --git a/app/Http/Controllers/Backend/BlogTags/BlogTagsController.php b/app/Http/Controllers/Backend/BlogTags/BlogTagsController.php index 00bb96c2..5b6f4c5c 100755 --- a/app/Http/Controllers/Backend/BlogTags/BlogTagsController.php +++ b/app/Http/Controllers/Backend/BlogTags/BlogTagsController.php @@ -23,7 +23,7 @@ class BlogTagsController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\BlogTagsRepository $repository + * @param \App\Repositories\Backend\BlogTagsRepository $repository */ public function __construct(BlogTagsRepository $repository) { @@ -32,8 +32,7 @@ public function __construct(BlogTagsRepository $repository) } /** - * @param \App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest $request - * + * @param \App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest $request * @return ViewResponse */ public function index(ManageBlogTagsRequest $request) @@ -43,8 +42,8 @@ public function index(ManageBlogTagsRequest $request) /** * Show the form for creating a new resource. - * @param \App\Http\Requests\Backend\BlogTags\CreateBlogTagsRequest * + * @param \App\Http\Requests\Backend\BlogTags\CreateBlogTagsRequest * @return ViewResponse */ public function create(CreateBlogTagsRequest $request) @@ -53,8 +52,7 @@ public function create(CreateBlogTagsRequest $request) } /** - * @param \App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest $request - * + * @param \App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StoreBlogTagsRequest $request) @@ -65,9 +63,8 @@ public function store(StoreBlogTagsRequest $request) } /** - * @param \App\Models\BlogTag $blogTag - * @param \App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest $request - * + * @param \App\Models\BlogTag $blogTag + * @param \App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest $request * @return \App\Http\Responses\Backend\BlogTag\EditResponse */ public function edit(BlogTag $blogTag, ManageBlogTagsRequest $request) @@ -76,9 +73,8 @@ public function edit(BlogTag $blogTag, ManageBlogTagsRequest $request) } /** - * @param \App\Models\BlogTag $blogTag - * @param \App\Http\Requests\Backend\BlogTags\UpdateBlogTagsRequest $request - * + * @param \App\Models\BlogTag $blogTag + * @param \App\Http\Requests\Backend\BlogTags\UpdateBlogTagsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(BlogTag $blogTag, UpdateBlogTagsRequest $request) @@ -89,9 +85,8 @@ public function update(BlogTag $blogTag, UpdateBlogTagsRequest $request) } /** - * @param \App\Models\BlogTag $blogTag - * @param \App\Http\Requests\Backend\BlogTags\DeleteBlogTagsRequest $request - * + * @param \App\Models\BlogTag $blogTag + * @param \App\Http\Requests\Backend\BlogTags\DeleteBlogTagsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function destroy(BlogTag $blogTag, DeleteBlogTagsRequest $request) diff --git a/app/Http/Controllers/Backend/BlogTags/BlogTagsTableController.php b/app/Http/Controllers/Backend/BlogTags/BlogTagsTableController.php index fd063cca..f2b0db61 100755 --- a/app/Http/Controllers/Backend/BlogTags/BlogTagsTableController.php +++ b/app/Http/Controllers/Backend/BlogTags/BlogTagsTableController.php @@ -16,7 +16,7 @@ class BlogTagsTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\BlogTagsRepository $repository + * @param \App\Repositories\Backend\BlogTagsRepository $repository */ public function __construct(BlogTagsRepository $repository) { @@ -24,8 +24,7 @@ public function __construct(BlogTagsRepository $repository) } /** - * @param \App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest $request - * + * @param \App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest $request * @return mixed */ public function __invoke(ManageBlogTagsRequest $request) diff --git a/app/Http/Controllers/Backend/Blogs/BlogsController.php b/app/Http/Controllers/Backend/Blogs/BlogsController.php index 463b33cb..b3630968 100755 --- a/app/Http/Controllers/Backend/Blogs/BlogsController.php +++ b/app/Http/Controllers/Backend/Blogs/BlogsController.php @@ -23,7 +23,7 @@ class BlogsController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\BlogsRepository $blog + * @param \App\Repositories\Backend\BlogsRepository $blog */ public function __construct(BlogsRepository $repository) { @@ -32,8 +32,7 @@ public function __construct(BlogsRepository $repository) } /** - * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request - * + * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request * @return ViewResponse */ public function index(ManageBlogsRequest $request) @@ -42,8 +41,7 @@ public function index(ManageBlogsRequest $request) } /** - * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request - * + * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request * @return ViewResponse */ public function create(ManageBlogsRequest $request, Blog $blog) @@ -55,8 +53,7 @@ public function create(ManageBlogsRequest $request, Blog $blog) } /** - * @param \App\Http\Requests\Backend\Blogs\StoreBlogsRequest $request - * + * @param \App\Http\Requests\Backend\Blogs\StoreBlogsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StoreBlogsRequest $request) @@ -67,9 +64,8 @@ public function store(StoreBlogsRequest $request) } /** - * @param \App\Models\Blog $blog - * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request - * + * @param \App\Models\Blog $blog + * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request * @return \App\Http\Responses\Backend\Blog\EditResponse */ public function edit(Blog $blog, ManageBlogsRequest $request) @@ -81,9 +77,8 @@ public function edit(Blog $blog, ManageBlogsRequest $request) } /** - * @param \App\Models\Blogs\Blog $blog - * @param \App\Http\Requests\Backend\Blogs\UpdateBlogsRequest $request - * + * @param \App\Models\Blogs\Blog $blog + * @param \App\Http\Requests\Backend\Blogs\UpdateBlogsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(Blog $blog, UpdateBlogsRequest $request) @@ -94,9 +89,8 @@ public function update(Blog $blog, UpdateBlogsRequest $request) } /** - * @param \App\Models\Blog $blog - * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request - * + * @param \App\Models\Blog $blog + * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function destroy(Blog $blog, ManageBlogsRequest $request) diff --git a/app/Http/Controllers/Backend/Blogs/BlogsTableController.php b/app/Http/Controllers/Backend/Blogs/BlogsTableController.php index 55c00ac1..207ce62e 100755 --- a/app/Http/Controllers/Backend/Blogs/BlogsTableController.php +++ b/app/Http/Controllers/Backend/Blogs/BlogsTableController.php @@ -18,7 +18,7 @@ class BlogsTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\BlogsRepository $repository + * @param \App\Repositories\Backend\BlogsRepository $repository */ public function __construct(BlogsRepository $repository) { @@ -26,8 +26,7 @@ public function __construct(BlogsRepository $repository) } /** - * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request - * + * @param \App\Http\Requests\Backend\Blogs\ManageBlogsRequest $request * @return mixed */ public function __invoke(ManageBlogsRequest $request) diff --git a/app/Http/Controllers/Backend/DashboardController.php b/app/Http/Controllers/Backend/DashboardController.php index 45feb9a7..ec75266b 100755 --- a/app/Http/Controllers/Backend/DashboardController.php +++ b/app/Http/Controllers/Backend/DashboardController.php @@ -27,7 +27,7 @@ public function index() /** * This function is used to get permissions details by role. * - * @param \Illuminate\Http\Request\Request $request + * @param \Illuminate\Http\Request\Request $request */ public function getPermissionByRole(Request $request) { diff --git a/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesController.php b/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesController.php index 5df64609..5869e8d9 100755 --- a/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesController.php +++ b/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesController.php @@ -23,7 +23,7 @@ class EmailTemplatesController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\EmailTemplatesRepository $emailTemplate + * @param \App\Repositories\Backend\EmailTemplatesRepository $emailTemplate */ public function __construct(EmailTemplatesRepository $repository) { @@ -32,8 +32,7 @@ public function __construct(EmailTemplatesRepository $repository) } /** - * @param \App\Http\Requests\Backend\EmailTemplates\ManageEmailTemplatesRequest $request - * + * @param \App\Http\Requests\Backend\EmailTemplates\ManageEmailTemplatesRequest $request * @return ViewResponse */ public function index(ManageEmailTemplatesRequest $request) @@ -43,7 +42,6 @@ public function index(ManageEmailTemplatesRequest $request) /** * @param \App\Http\Requests\Backend\EmailTemplates\CreateEmailTemplatesRequest - * * @return ViewResponse */ public function create(CreateEmailTemplatesRequest $request) @@ -52,8 +50,7 @@ public function create(CreateEmailTemplatesRequest $request) } /** - * @param \App\Http\Requests\Backend\EmailTemplates\StoreEmailTemplatesRequest $request - * + * @param \App\Http\Requests\Backend\EmailTemplates\StoreEmailTemplatesRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StoreEmailTemplatesRequest $request) @@ -64,9 +61,8 @@ public function store(StoreEmailTemplatesRequest $request) } /** - * @param \App\Models\EmailTemplate $emailTemplate - * @param \App\Http\Requests\Backend\EmailTemplates\ManageEmailTemplatesRequest $request - * + * @param \App\Models\EmailTemplate $emailTemplate + * @param \App\Http\Requests\Backend\EmailTemplates\ManageEmailTemplatesRequest $request * @return \App\Http\Responses\Backend\EmailTemplates\EditResponse */ public function edit(EmailTemplate $emailTemplate, ManageEmailTemplatesRequest $request) @@ -75,9 +71,8 @@ public function edit(EmailTemplate $emailTemplate, ManageEmailTemplatesRequest $ } /** - * @param \App\Models\EmailTemplate $emailTemplate - * @param \App\Http\Requests\Backend\EmailTemplates\UpdateEmailTemplatesRequest $request - * + * @param \App\Models\EmailTemplate $emailTemplate + * @param \App\Http\Requests\Backend\EmailTemplates\UpdateEmailTemplatesRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(EmailTemplate $emailTemplate, UpdateEmailTemplatesRequest $request) @@ -88,9 +83,8 @@ public function update(EmailTemplate $emailTemplate, UpdateEmailTemplatesRequest } /** - * @param \App\Models\EmailTemplate $emailTemplate - * @param \App\Http\Requests\Backend\EmailTemplates\DeleteEmailTemplatesRequest $request - * + * @param \App\Models\EmailTemplate $emailTemplate + * @param \App\Http\Requests\Backend\EmailTemplates\DeleteEmailTemplatesRequest $request * @return \App\Http\Responses\RedirectResponse */ public function destroy(EmailTemplate $emailTemplate, DeleteEmailTemplatesRequest $request) diff --git a/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesTableController.php b/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesTableController.php index 60c2c2e1..45007893 100755 --- a/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesTableController.php +++ b/app/Http/Controllers/Backend/EmailTemplates/EmailTemplatesTableController.php @@ -15,7 +15,7 @@ class EmailTemplatesTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\EmailTemplatesRepository $repository + * @param \App\Repositories\Backend\EmailTemplatesRepository $repository */ public function __construct(EmailTemplatesRepository $repository) { @@ -23,8 +23,7 @@ public function __construct(EmailTemplatesRepository $repository) } /** - * @param \App\Http\Requests\Backend\EmailTemplates\ManageEmailTemplatesRequest $request - * + * @param \App\Http\Requests\Backend\EmailTemplates\ManageEmailTemplatesRequest $request * @return mixed */ public function __invoke(ManageEmailTemplatesRequest $request) diff --git a/app/Http/Controllers/Backend/Faqs/FaqsController.php b/app/Http/Controllers/Backend/Faqs/FaqsController.php index aaa60f51..e24a2244 100755 --- a/app/Http/Controllers/Backend/Faqs/FaqsController.php +++ b/app/Http/Controllers/Backend/Faqs/FaqsController.php @@ -22,7 +22,7 @@ class FaqsController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\FaqsRepository $faq + * @param \App\Repositories\Backend\FaqsRepository $faq */ public function __construct(FaqsRepository $repository) { @@ -31,8 +31,7 @@ public function __construct(FaqsRepository $repository) } /** - * @param \App\Http\Requests\Backend\Faqs\ManageFaqsRequest $request - * + * @param \App\Http\Requests\Backend\Faqs\ManageFaqsRequest $request * @return ViewResponse */ public function index(ManageFaqsRequest $request) @@ -41,8 +40,7 @@ public function index(ManageFaqsRequest $request) } /** - * @param \App\Http\Requests\Backend\Faqs\CreateFaqsRequest $request - * + * @param \App\Http\Requests\Backend\Faqs\CreateFaqsRequest $request * @return ViewResponse */ public function create(CreateFaqsRequest $request) @@ -51,8 +49,7 @@ public function create(CreateFaqsRequest $request) } /** - * @param \App\Http\Requests\Backend\Faqs\StoreFaqsRequest $request - * + * @param \App\Http\Requests\Backend\Faqs\StoreFaqsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StoreFaqsRequest $request) @@ -63,9 +60,8 @@ public function store(StoreFaqsRequest $request) } /** - * @param \App\Models\Faq $faq - * @param \App\Http\Requests\Backend\Faqs\ManagePageRequest $request - * + * @param \App\Models\Faq $faq + * @param \App\Http\Requests\Backend\Faqs\ManagePageRequest $request * @return ViewResponse */ public function edit(Faq $faq, ManageFaqsRequest $request) @@ -74,9 +70,8 @@ public function edit(Faq $faq, ManageFaqsRequest $request) } /** - * @param \App\Models\Faq $faq - * @param \App\Http\Requests\Backend\Faqs\UpdateFaqsRequest $request - * + * @param \App\Models\Faq $faq + * @param \App\Http\Requests\Backend\Faqs\UpdateFaqsRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(Faq $faq, UpdateFaqsRequest $request) @@ -87,9 +82,8 @@ public function update(Faq $faq, UpdateFaqsRequest $request) } /** - * @param \App\Models\Faq $faq - * @param \App\Http\Requests\Backend\Pages\DeleteFaqRequest $request - * + * @param \App\Models\Faq $faq + * @param \App\Http\Requests\Backend\Pages\DeleteFaqRequest $request * @return \App\Http\Responses\RedirectResponse */ public function destroy(Faq $faq, DeleteFaqsRequest $request) diff --git a/app/Http/Controllers/Backend/Faqs/FaqsTableController.php b/app/Http/Controllers/Backend/Faqs/FaqsTableController.php index f6f82519..a6566cb8 100755 --- a/app/Http/Controllers/Backend/Faqs/FaqsTableController.php +++ b/app/Http/Controllers/Backend/Faqs/FaqsTableController.php @@ -16,7 +16,7 @@ class FaqsTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\FaqsRepository $faqs + * @param \App\Repositories\Backend\FaqsRepository $faqs */ public function __construct(FaqsRepository $repository) { @@ -24,8 +24,7 @@ public function __construct(FaqsRepository $repository) } /** - * @param \App\Http\Requests\Backend\Faqs\ManageFaqsRequest $request - * + * @param \App\Http\Requests\Backend\Faqs\ManageFaqsRequest $request * @return mixed */ public function __invoke(ManageFaqsRequest $request) diff --git a/app/Http/Controllers/Backend/Pages/PagesController.php b/app/Http/Controllers/Backend/Pages/PagesController.php index 2add6333..e320d8d1 100755 --- a/app/Http/Controllers/Backend/Pages/PagesController.php +++ b/app/Http/Controllers/Backend/Pages/PagesController.php @@ -24,7 +24,7 @@ class PagesController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\PagesRepository $repository + * @param \App\Repositories\Backend\PagesRepository $repository */ public function __construct(PagesRepository $repository) { @@ -33,8 +33,7 @@ public function __construct(PagesRepository $repository) } /** - * @param \App\Http\Requests\Backend\Pages\ManagePageRequest $request - * + * @param \App\Http\Requests\Backend\Pages\ManagePageRequest $request * @return \App\Http\Responses\ViewResponse */ public function index(ManagePageRequest $request) @@ -43,8 +42,7 @@ public function index(ManagePageRequest $request) } /** - * @param \App\Http\Requests\Backend\Pages\CreatePageRequest $request - * + * @param \App\Http\Requests\Backend\Pages\CreatePageRequest $request * @return \App\Http\Responses\ViewResponse */ public function create(CreatePageRequest $request) @@ -53,8 +51,7 @@ public function create(CreatePageRequest $request) } /** - * @param \App\Http\Requests\Backend\Pages\StorePageRequest $request - * + * @param \App\Http\Requests\Backend\Pages\StorePageRequest $request * @return \App\Http\Responses\RedirectResponse */ public function store(StorePageRequest $request) @@ -65,9 +62,8 @@ public function store(StorePageRequest $request) } /** - * @param \App\Models\Page $page - * @param \App\Http\Requests\Backend\Pages\EditPageRequest $request - * + * @param \App\Models\Page $page + * @param \App\Http\Requests\Backend\Pages\EditPageRequest $request * @return \App\Http\Responses\Backend\Blog\EditResponse */ public function edit(Page $page, EditPageRequest $request) @@ -76,9 +72,8 @@ public function edit(Page $page, EditPageRequest $request) } /** - * @param \App\Models\Page $page - * @param \App\Http\Requests\Backend\Pages\UpdatePageRequest $request - * + * @param \App\Models\Page $page + * @param \App\Http\Requests\Backend\Pages\UpdatePageRequest $request * @return \App\Http\Responses\RedirectResponse */ public function update(Page $page, UpdatePageRequest $request) @@ -89,9 +84,8 @@ public function update(Page $page, UpdatePageRequest $request) } /** - * @param \App\Models\Page $page - * @param \App\Http\Requests\Backend\Pages\DeletePageRequest $request - * + * @param \App\Models\Page $page + * @param \App\Http\Requests\Backend\Pages\DeletePageRequest $request * @return \App\Http\Responses\RedirectResponse */ public function destroy(Page $page, DeletePageRequest $request) diff --git a/app/Http/Controllers/Backend/Pages/PagesTableController.php b/app/Http/Controllers/Backend/Pages/PagesTableController.php index 16c3043a..e2b301e4 100755 --- a/app/Http/Controllers/Backend/Pages/PagesTableController.php +++ b/app/Http/Controllers/Backend/Pages/PagesTableController.php @@ -15,7 +15,7 @@ class PagesTableController extends Controller protected $repository; /** - * @param \App\Repositories\Backend\PagesRepository $repository + * @param \App\Repositories\Backend\PagesRepository $repository */ public function __construct(PagesRepository $repository) { @@ -23,8 +23,7 @@ public function __construct(PagesRepository $repository) } /** - * @param \App\Http\Requests\Backend\Pages\ManagePageRequest $request - * + * @param \App\Http\Requests\Backend\Pages\ManagePageRequest $request * @return mixed */ public function __invoke(ManagePageRequest $request) diff --git a/app/Http/Controllers/Frontend/Auth/ConfirmAccountController.php b/app/Http/Controllers/Frontend/Auth/ConfirmAccountController.php index 63ee4fa9..36e661f4 100755 --- a/app/Http/Controllers/Frontend/Auth/ConfirmAccountController.php +++ b/app/Http/Controllers/Frontend/Auth/ConfirmAccountController.php @@ -19,7 +19,7 @@ class ConfirmAccountController extends Controller /** * ConfirmAccountController constructor. * - * @param UserRepository $user + * @param UserRepository $user */ public function __construct(UserRepository $user) { @@ -28,9 +28,9 @@ public function __construct(UserRepository $user) /** * @param $token + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function confirm($token) { @@ -41,9 +41,9 @@ public function confirm($token) /** * @param $uuid + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function sendConfirmationEmail($uuid) { diff --git a/app/Http/Controllers/Frontend/Auth/LoginController.php b/app/Http/Controllers/Frontend/Auth/LoginController.php index 0d07fcfa..73613ac3 100755 --- a/app/Http/Controllers/Frontend/Auth/LoginController.php +++ b/app/Http/Controllers/Frontend/Auth/LoginController.php @@ -66,11 +66,11 @@ protected function validateLogin(Request $request) /** * The user has been authenticated. * - * @param Request $request - * @param $user + * @param Request $request + * @param $user + * @return \Illuminate\Http\RedirectResponse * * @throws GeneralException - * @return \Illuminate\Http\RedirectResponse */ protected function authenticated(Request $request, $user) { @@ -106,8 +106,7 @@ protected function authenticated(Request $request, $user) /** * Log the user out of the application. * - * @param Request $request - * + * @param Request $request * @return \Illuminate\Http\Response */ public function logout(Request $request) diff --git a/app/Http/Controllers/Frontend/Auth/PasswordExpiredController.php b/app/Http/Controllers/Frontend/Auth/PasswordExpiredController.php index 6c2dc92a..df8d852e 100755 --- a/app/Http/Controllers/Frontend/Auth/PasswordExpiredController.php +++ b/app/Http/Controllers/Frontend/Auth/PasswordExpiredController.php @@ -22,11 +22,11 @@ public function expired() } /** - * @param UpdatePasswordRequest $request - * @param UserRepository $userRepository + * @param UpdatePasswordRequest $request + * @param UserRepository $userRepository + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function update(UpdatePasswordRequest $request, UserRepository $userRepository) { diff --git a/app/Http/Controllers/Frontend/Auth/RegisterController.php b/app/Http/Controllers/Frontend/Auth/RegisterController.php index e9dae2b0..acc52942 100755 --- a/app/Http/Controllers/Frontend/Auth/RegisterController.php +++ b/app/Http/Controllers/Frontend/Auth/RegisterController.php @@ -23,7 +23,7 @@ class RegisterController extends Controller /** * RegisterController constructor. * - * @param UserRepository $userRepository + * @param UserRepository $userRepository */ public function __construct(UserRepository $userRepository) { @@ -53,10 +53,10 @@ public function showRegistrationForm() } /** - * @param RegisterRequest $request + * @param RegisterRequest $request + * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector * * @throws \Throwable - * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector */ public function register(RegisterRequest $request) { diff --git a/app/Http/Controllers/Frontend/Auth/ResetPasswordController.php b/app/Http/Controllers/Frontend/Auth/ResetPasswordController.php index 1fb1a361..d2b7c0b1 100755 --- a/app/Http/Controllers/Frontend/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Frontend/Auth/ResetPasswordController.php @@ -25,7 +25,7 @@ class ResetPasswordController extends Controller /** * ChangePasswordController constructor. * - * @param UserRepository $userRepository + * @param UserRepository $userRepository */ public function __construct(UserRepository $userRepository) { @@ -37,8 +37,7 @@ public function __construct(UserRepository $userRepository) * * If no token is present, display the link request form. * - * @param string|null $token - * + * @param string|null $token * @return \Illuminate\Http\Response */ public function showResetForm($token = null) diff --git a/app/Http/Controllers/Frontend/Auth/SocialLoginController.php b/app/Http/Controllers/Frontend/Auth/SocialLoginController.php index 26777c10..e959d1f6 100755 --- a/app/Http/Controllers/Frontend/Auth/SocialLoginController.php +++ b/app/Http/Controllers/Frontend/Auth/SocialLoginController.php @@ -28,8 +28,8 @@ class SocialLoginController extends Controller /** * SocialLoginController constructor. * - * @param UserRepository $userRepository - * @param SocialiteHelper $socialiteHelper + * @param UserRepository $userRepository + * @param SocialiteHelper $socialiteHelper */ public function __construct(UserRepository $userRepository, SocialiteHelper $socialiteHelper) { @@ -38,12 +38,11 @@ public function __construct(UserRepository $userRepository, SocialiteHelper $soc } /** - * @param Request $request + * @param Request $request * @param $provider + * @return \Illuminate\Http\RedirectResponse|mixed * * @throws GeneralException - * - * @return \Illuminate\Http\RedirectResponse|mixed */ public function login(Request $request, $provider) { @@ -99,7 +98,6 @@ public function login(Request $request, $provider) /** * @param $provider - * * @return mixed */ protected function getAuthorizationFirst($provider) @@ -126,7 +124,6 @@ protected function getAuthorizationFirst($provider) /** * @param $provider - * * @return mixed */ protected function getProviderUser($provider) diff --git a/app/Http/Controllers/Frontend/Auth/UpdatePasswordController.php b/app/Http/Controllers/Frontend/Auth/UpdatePasswordController.php index 3483ee41..59530059 100755 --- a/app/Http/Controllers/Frontend/Auth/UpdatePasswordController.php +++ b/app/Http/Controllers/Frontend/Auth/UpdatePasswordController.php @@ -19,7 +19,7 @@ class UpdatePasswordController extends Controller /** * ChangePasswordController constructor. * - * @param UserRepository $userRepository + * @param UserRepository $userRepository */ public function __construct(UserRepository $userRepository) { @@ -27,10 +27,10 @@ public function __construct(UserRepository $userRepository) } /** - * @param UpdatePasswordRequest $request + * @param UpdatePasswordRequest $request + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function update(UpdatePasswordRequest $request) { diff --git a/app/Http/Controllers/Frontend/ContactController.php b/app/Http/Controllers/Frontend/ContactController.php index 689ba0b9..51e82bb5 100755 --- a/app/Http/Controllers/Frontend/ContactController.php +++ b/app/Http/Controllers/Frontend/ContactController.php @@ -21,8 +21,7 @@ public function index() } /** - * @param SendContactRequest $request - * + * @param SendContactRequest $request * @return mixed */ public function send(SendContactRequest $request) diff --git a/app/Http/Controllers/Frontend/User/ProfileController.php b/app/Http/Controllers/Frontend/User/ProfileController.php index 658c167f..a0aa8f8a 100755 --- a/app/Http/Controllers/Frontend/User/ProfileController.php +++ b/app/Http/Controllers/Frontend/User/ProfileController.php @@ -19,7 +19,7 @@ class ProfileController extends Controller /** * ProfileController constructor. * - * @param UserRepository $userRepository + * @param UserRepository $userRepository */ public function __construct(UserRepository $userRepository) { @@ -27,10 +27,10 @@ public function __construct(UserRepository $userRepository) } /** - * @param UpdateProfileRequest $request + * @param UpdateProfileRequest $request + * @return mixed * * @throws \App\Exceptions\GeneralException - * @return mixed */ public function update(UpdateProfileRequest $request) { diff --git a/app/Http/Controllers/LanguageController.php b/app/Http/Controllers/LanguageController.php index 4e178b55..a8a4d031 100755 --- a/app/Http/Controllers/LanguageController.php +++ b/app/Http/Controllers/LanguageController.php @@ -9,7 +9,6 @@ class LanguageController extends Controller { /** * @param $locale - * * @return \Illuminate\Http\RedirectResponse */ public function swap($locale) diff --git a/app/Http/Middleware/CheckForReadOnlyMode.php b/app/Http/Middleware/CheckForReadOnlyMode.php index e4766610..7e50caae 100755 --- a/app/Http/Middleware/CheckForReadOnlyMode.php +++ b/app/Http/Middleware/CheckForReadOnlyMode.php @@ -24,9 +24,8 @@ class CheckForReadOnlyMode /** * 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/LocaleMiddleware.php b/app/Http/Middleware/LocaleMiddleware.php index 4e3b02b8..925fb30f 100755 --- a/app/Http/Middleware/LocaleMiddleware.php +++ b/app/Http/Middleware/LocaleMiddleware.php @@ -13,9 +13,8 @@ class LocaleMiddleware /** * 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/PasswordExpires.php b/app/Http/Middleware/PasswordExpires.php index 63cb48f8..dad93040 100755 --- a/app/Http/Middleware/PasswordExpires.php +++ b/app/Http/Middleware/PasswordExpires.php @@ -11,11 +11,11 @@ class PasswordExpires { /** - * @param $request - * @param Closure $next + * @param $request + * @param Closure $next + * @return \Illuminate\Http\RedirectResponse|mixed * * @throws \Exception - * @return \Illuminate\Http\RedirectResponse|mixed */ public function handle($request, Closure $next) { diff --git a/app/Http/Middleware/SecureHeaders.php b/app/Http/Middleware/SecureHeaders.php index dbd320a2..7db7d0fc 100755 --- a/app/Http/Middleware/SecureHeaders.php +++ b/app/Http/Middleware/SecureHeaders.php @@ -28,7 +28,6 @@ class SecureHeaders /** * @param $request * @param Closure $next - * * @return mixed */ public function handle($request, Closure $next) diff --git a/app/Http/Middleware/ToBeLoggedOut.php b/app/Http/Middleware/ToBeLoggedOut.php index faeaed68..ea708203 100755 --- a/app/Http/Middleware/ToBeLoggedOut.php +++ b/app/Http/Middleware/ToBeLoggedOut.php @@ -10,9 +10,8 @@ class ToBeLoggedOut { /** - * @param $request - * @param Closure $next - * + * @param $request + * @param Closure $next * @return \Illuminate\Http\RedirectResponse|mixed */ public function handle($request, Closure $next) diff --git a/app/Http/Resources/BlogCategoriesResource.php b/app/Http/Resources/BlogCategoriesResource.php index d536c4c3..050e9c62 100755 --- a/app/Http/Resources/BlogCategoriesResource.php +++ b/app/Http/Resources/BlogCategoriesResource.php @@ -10,7 +10,6 @@ class BlogCategoriesResource extends Resource * Transform the resource into an array. * * @param \Illuminate\Http\Request - * * @return array */ public function toArray($request) diff --git a/app/Http/Resources/BlogTagsResource.php b/app/Http/Resources/BlogTagsResource.php index 6b6243aa..401575c5 100755 --- a/app/Http/Resources/BlogTagsResource.php +++ b/app/Http/Resources/BlogTagsResource.php @@ -10,7 +10,6 @@ class BlogTagsResource extends Resource * Transform the resource into an array. * * @param \Illuminate\Http\Request - * * @return array */ public function toArray($request) diff --git a/app/Http/Resources/BlogsResource.php b/app/Http/Resources/BlogsResource.php index ae5bbbc2..7dd5fe02 100755 --- a/app/Http/Resources/BlogsResource.php +++ b/app/Http/Resources/BlogsResource.php @@ -10,7 +10,6 @@ class BlogsResource extends Resource * Transform the resource into an array. * * @param \Illuminate\Http\Request - * * @return array */ public function toArray($request) diff --git a/app/Http/Resources/FaqsResource.php b/app/Http/Resources/FaqsResource.php index aff89466..cf184436 100755 --- a/app/Http/Resources/FaqsResource.php +++ b/app/Http/Resources/FaqsResource.php @@ -10,7 +10,6 @@ class FaqsResource extends Resource * Transform the resource into an array. * * @param \Illuminate\Http\Request - * * @return array */ public function toArray($request) diff --git a/app/Http/Resources/PagesResource.php b/app/Http/Resources/PagesResource.php index 129ea883..12dafea9 100755 --- a/app/Http/Resources/PagesResource.php +++ b/app/Http/Resources/PagesResource.php @@ -10,7 +10,6 @@ class PagesResource extends Resource * Transform the resource into an array. * * @param \Illuminate\Http\Request - * * @return array */ public function toArray($request) diff --git a/app/Http/Resources/UserResource.php b/app/Http/Resources/UserResource.php index 1fc6d005..827b549d 100755 --- a/app/Http/Resources/UserResource.php +++ b/app/Http/Resources/UserResource.php @@ -10,7 +10,6 @@ class UserResource extends Resource * Transform the resource into an array. * * @param \Illuminate\Http\Request - * * @return array */ public function toArray($request) diff --git a/app/Http/Responses/Backend/Auth/Permission/CreateResponse.php b/app/Http/Responses/Backend/Auth/Permission/CreateResponse.php index c0e9a015..7f375b49 100755 --- a/app/Http/Responses/Backend/Auth/Permission/CreateResponse.php +++ b/app/Http/Responses/Backend/Auth/Permission/CreateResponse.php @@ -12,7 +12,7 @@ class CreateResponse implements Responsable protected $permissions; /** - * @param \App\Repositories\Backend\Auth\Permission\PermissionRepository $permissions + * @param \App\Repositories\Backend\Auth\Permission\PermissionRepository $permissions */ public function __construct($permissions) { @@ -22,8 +22,7 @@ public function __construct($permissions) /** * In Response. * - * @param \App\Http\Requests\Request $request - * + * @param \App\Http\Requests\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/Backend/Auth/Permission/EditResponse.php b/app/Http/Responses/Backend/Auth/Permission/EditResponse.php index 32048465..83905cf6 100755 --- a/app/Http/Responses/Backend/Auth/Permission/EditResponse.php +++ b/app/Http/Responses/Backend/Auth/Permission/EditResponse.php @@ -12,7 +12,7 @@ class EditResponse implements Responsable protected $permission; /** - * @param \App\Models\Auth\Permission\Permission $permission + * @param \App\Models\Auth\Permission\Permission $permission */ public function __construct($permission) { @@ -22,8 +22,7 @@ public function __construct($permission) /** * toReponse. * - * @param \Illuminate\Http\Request $request - * + * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/Backend/Auth/Role/CreateResponse.php b/app/Http/Responses/Backend/Auth/Role/CreateResponse.php index 0f73f276..d6e634e1 100755 --- a/app/Http/Responses/Backend/Auth/Role/CreateResponse.php +++ b/app/Http/Responses/Backend/Auth/Role/CreateResponse.php @@ -17,8 +17,8 @@ class CreateResponse implements Responsable protected $permissionRepository; /** - * @param \App\Repositories\Backend\Auth\Permission\PermissionRepository $permissions - * @param \App\Repositories\Backend\Auth\Role\RoleRepository $roles + * @param \App\Repositories\Backend\Auth\Permission\PermissionRepository $permissions + * @param \App\Repositories\Backend\Auth\Role\RoleRepository $roles */ public function __construct($permissions, $roles) { @@ -29,8 +29,7 @@ public function __construct($permissions, $roles) /** * In Response. * - * @param \App\Http\Requests\Request $request - * + * @param \App\Http\Requests\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/Backend/Auth/Role/EditResponse.php b/app/Http/Responses/Backend/Auth/Role/EditResponse.php index c67a7d28..cd3605cf 100755 --- a/app/Http/Responses/Backend/Auth/Role/EditResponse.php +++ b/app/Http/Responses/Backend/Auth/Role/EditResponse.php @@ -17,8 +17,8 @@ class EditResponse implements Responsable protected $permissionRepository; /** - * @param \App\Models\Auth\Role $role - * @param \App\Repositories\Backend\Auth\Permission\PermissionRepository $permissionRepository + * @param \App\Models\Auth\Role $role + * @param \App\Repositories\Backend\Auth\Permission\PermissionRepository $permissionRepository */ public function __construct($role, $permissionRepository) { @@ -29,8 +29,7 @@ public function __construct($role, $permissionRepository) /** * toReponse. * - * @param \Illuminate\Http\Request $request - * + * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/Backend/BlogCategory/EditResponse.php b/app/Http/Responses/Backend/BlogCategory/EditResponse.php index b717a73a..6b1300e4 100755 --- a/app/Http/Responses/Backend/BlogCategory/EditResponse.php +++ b/app/Http/Responses/Backend/BlogCategory/EditResponse.php @@ -12,7 +12,7 @@ class EditResponse implements Responsable protected $blogCategory; /** - * @param \App\Models\BlogCategories\BlogCategory $blogCategory + * @param \App\Models\BlogCategories\BlogCategory $blogCategory */ public function __construct($blogCategory) { @@ -22,8 +22,7 @@ public function __construct($blogCategory) /** * toReponse. * - * @param \Illuminate\Http\Request $request - * + * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/Backend/BlogTag/EditResponse.php b/app/Http/Responses/Backend/BlogTag/EditResponse.php index e0ecae40..d28d0b96 100755 --- a/app/Http/Responses/Backend/BlogTag/EditResponse.php +++ b/app/Http/Responses/Backend/BlogTag/EditResponse.php @@ -12,7 +12,7 @@ class EditResponse implements Responsable protected $blogTag; /** - * @param \App\Models\BlogTags\BlogTag $blogTag + * @param \App\Models\BlogTags\BlogTag $blogTag */ public function __construct($blogTag) { @@ -22,8 +22,7 @@ public function __construct($blogTag) /** * toReponse. * - * @param \Illuminate\Http\Request $request - * + * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/Backend/Page/EditResponse.php b/app/Http/Responses/Backend/Page/EditResponse.php index e893fadb..bf70dfeb 100755 --- a/app/Http/Responses/Backend/Page/EditResponse.php +++ b/app/Http/Responses/Backend/Page/EditResponse.php @@ -12,7 +12,7 @@ class EditResponse implements Responsable protected $page; /** - * @param \App\Models\Page\Page $page + * @param \App\Models\Page\Page $page */ public function __construct($page) { @@ -22,8 +22,7 @@ public function __construct($page) /** * toReponse. * - * @param \Illuminate\Http\Request $request - * + * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Http/Responses/ViewResponse.php b/app/Http/Responses/ViewResponse.php index 53f52fb1..79940565 100755 --- a/app/Http/Responses/ViewResponse.php +++ b/app/Http/Responses/ViewResponse.php @@ -17,8 +17,8 @@ class ViewResponse implements Responsable protected $with; /** - * @param string $view - * @param array $with + * @param string $view + * @param array $with */ public function __construct($view, $with = []) { @@ -29,8 +29,7 @@ public function __construct($view, $with = []) /** * In Response. * - * @param \Illuminate\Http\Request $request - * + * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function toResponse($request) diff --git a/app/Listeners/Backend/Auth/Permission/PermissionEventListener.php b/app/Listeners/Backend/Auth/Permission/PermissionEventListener.php index 9714c832..97646b08 100755 --- a/app/Listeners/Backend/Auth/Permission/PermissionEventListener.php +++ b/app/Listeners/Backend/Auth/Permission/PermissionEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/Auth/Role/RoleEventListener.php b/app/Listeners/Backend/Auth/Role/RoleEventListener.php index e0b838dd..a55a8e4b 100755 --- a/app/Listeners/Backend/Auth/Role/RoleEventListener.php +++ b/app/Listeners/Backend/Auth/Role/RoleEventListener.php @@ -38,7 +38,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/Auth/User/UserEventListener.php b/app/Listeners/Backend/Auth/User/UserEventListener.php index 8a053626..56109bfe 100755 --- a/app/Listeners/Backend/Auth/User/UserEventListener.php +++ b/app/Listeners/Backend/Auth/User/UserEventListener.php @@ -110,7 +110,7 @@ public function onRestored($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/BlogCategories/BlogCategoryEventListener.php b/app/Listeners/Backend/BlogCategories/BlogCategoryEventListener.php index 3e35487b..d56cce7e 100755 --- a/app/Listeners/Backend/BlogCategories/BlogCategoryEventListener.php +++ b/app/Listeners/Backend/BlogCategories/BlogCategoryEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/BlogTags/BlogTagEventListener.php b/app/Listeners/Backend/BlogTags/BlogTagEventListener.php index 7061bbb3..261647a4 100755 --- a/app/Listeners/Backend/BlogTags/BlogTagEventListener.php +++ b/app/Listeners/Backend/BlogTags/BlogTagEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/Blogs/BlogEventListener.php b/app/Listeners/Backend/Blogs/BlogEventListener.php index 2cff5b39..2a6cf829 100755 --- a/app/Listeners/Backend/Blogs/BlogEventListener.php +++ b/app/Listeners/Backend/Blogs/BlogEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/EmailTemplates/EmailTemplateEventListener.php b/app/Listeners/Backend/EmailTemplates/EmailTemplateEventListener.php index 94e1033f..327e335b 100755 --- a/app/Listeners/Backend/EmailTemplates/EmailTemplateEventListener.php +++ b/app/Listeners/Backend/EmailTemplates/EmailTemplateEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/Faqs/FaqEventListener.php b/app/Listeners/Backend/Faqs/FaqEventListener.php index fd4185ee..0be0d0ac 100755 --- a/app/Listeners/Backend/Faqs/FaqEventListener.php +++ b/app/Listeners/Backend/Faqs/FaqEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Backend/Pages/PageEventListener.php b/app/Listeners/Backend/Pages/PageEventListener.php index 344b2bbc..036a3660 100755 --- a/app/Listeners/Backend/Pages/PageEventListener.php +++ b/app/Listeners/Backend/Pages/PageEventListener.php @@ -54,7 +54,7 @@ public function onDeleted($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Listeners/Frontend/Auth/UserEventListener.php b/app/Listeners/Frontend/Auth/UserEventListener.php index 31e9239b..a9779e85 100755 --- a/app/Listeners/Frontend/Auth/UserEventListener.php +++ b/app/Listeners/Frontend/Auth/UserEventListener.php @@ -76,7 +76,7 @@ public function onConfirmed($event) /** * Register the listeners for the subscriber. * - * @param \Illuminate\Events\Dispatcher $events + * @param \Illuminate\Events\Dispatcher $events */ public function subscribe($events) { diff --git a/app/Mail/Frontend/Contact/SendContact.php b/app/Mail/Frontend/Contact/SendContact.php index d56e5c08..6acb153a 100755 --- a/app/Mail/Frontend/Contact/SendContact.php +++ b/app/Mail/Frontend/Contact/SendContact.php @@ -22,7 +22,7 @@ class SendContact extends Mailable /** * SendContact constructor. * - * @param Request $request + * @param Request $request */ public function __construct(Request $request) { diff --git a/app/Models/Auth/BaseUser.php b/app/Models/Auth/BaseUser.php index ab29dc3f..3273f823 100755 --- a/app/Models/Auth/BaseUser.php +++ b/app/Models/Auth/BaseUser.php @@ -47,6 +47,7 @@ abstract class BaseUser extends Authenticatable implements Recordable /** * The dynamic attributes from mutators that should be returned with the user object. + * * @var array */ protected $appends = [ @@ -87,7 +88,7 @@ abstract class BaseUser extends Authenticatable implements Recordable * Return true or false if the user can impersonate an other user. * * @param void - * @return bool + * @return bool */ public function canImpersonate() { @@ -98,7 +99,7 @@ public function canImpersonate() * Return true or false if the user can be impersonate. * * @param void - * @return bool + * @return bool */ public function canBeImpersonated() { diff --git a/app/Models/Auth/Traits/Access/RoleAccess.php b/app/Models/Auth/Traits/Access/RoleAccess.php index 18b5d02c..fea839e0 100755 --- a/app/Models/Auth/Traits/Access/RoleAccess.php +++ b/app/Models/Auth/Traits/Access/RoleAccess.php @@ -7,7 +7,7 @@ trait RoleAccess /** * Save the inputted permissions. * - * @param mixed $inputPermissions + * @param mixed $inputPermissions */ public function savePermissions($inputPermissions) { @@ -21,7 +21,7 @@ public function savePermissions($inputPermissions) /** * Attach permission to current role. * - * @param object|array $permission + * @param object|array $permission */ public function attachPermission($permission) { @@ -39,7 +39,7 @@ public function attachPermission($permission) /** * Detach permission form current role. * - * @param object|array $permission + * @param object|array $permission */ public function detachPermission($permission) { @@ -57,7 +57,7 @@ public function detachPermission($permission) /** * Attach multiple permissions to current role. * - * @param mixed $permissions + * @param mixed $permissions */ public function attachPermissions($permissions) { @@ -69,7 +69,7 @@ public function attachPermissions($permissions) /** * Detach multiple permissions from current role. * - * @param mixed $permissions + * @param mixed $permissions */ public function detachPermissions($permissions) { diff --git a/app/Models/Auth/Traits/Access/UserAccess.php b/app/Models/Auth/Traits/Access/UserAccess.php index 8d4f215e..a9245fef 100755 --- a/app/Models/Auth/Traits/Access/UserAccess.php +++ b/app/Models/Auth/Traits/Access/UserAccess.php @@ -7,8 +7,7 @@ trait UserAccess /** * Checks if the user has a Role by its name or id. * - * @param string $nameOrId Role name or id. - * + * @param string $nameOrId Role name or id. * @return bool */ public function hasRole($nameOrId) @@ -42,7 +41,6 @@ public function hasRole($nameOrId) * * @param $roles * @param $needsAll - * * @return bool */ public function hasRoles($roles, $needsAll = false) @@ -79,8 +77,7 @@ public function hasRoles($roles, $needsAll = false) /** * Check if user has a permission by its name or id. * - * @param string $nameOrId Permission name or id. - * + * @param string $nameOrId Permission name or id. * @return bool */ public function allow($nameOrId) @@ -140,7 +137,6 @@ public function allow($nameOrId) * * @param $permissions * @param $needsAll - * * @return bool */ public function allowMultiple($permissions, $needsAll = false) @@ -176,7 +172,6 @@ public function allowMultiple($permissions, $needsAll = false) /** * @param $nameOrId - * * @return bool */ public function hasPermission($nameOrId) @@ -186,8 +181,7 @@ public function hasPermission($nameOrId) /** * @param $permissions - * @param bool $needsAll - * + * @param bool $needsAll * @return bool */ public function hasPermissions($permissions, $needsAll = false) @@ -198,7 +192,7 @@ public function hasPermissions($permissions, $needsAll = false) /** * Alias to eloquent many-to-many relation's attach() method. * - * @param mixed $role + * @param mixed $role */ public function attachRole($role) { @@ -216,7 +210,7 @@ public function attachRole($role) /** * Alias to eloquent many-to-many relation's detach() method. * - * @param mixed $role + * @param mixed $role */ public function detachRole($role) { @@ -234,7 +228,7 @@ public function detachRole($role) /** * Attach multiple roles to a user. * - * @param mixed $roles + * @param mixed $roles */ public function attachRoles($roles) { @@ -246,7 +240,7 @@ public function attachRoles($roles) /** * Detach multiple roles from a user. * - * @param mixed $roles + * @param mixed $roles */ public function detachRoles($roles) { @@ -258,7 +252,7 @@ public function detachRoles($roles) /** * Attach multiple Permissions to a user. * - * @param mixed $permissions + * @param mixed $permissions */ public function attachPermissions($permissions) { @@ -270,7 +264,7 @@ public function attachPermissions($permissions) /** * Alias to eloquent many-to-many relation's attach() method. * - * @param mixed $permission + * @param mixed $permission */ public function attachPermission($permission) { @@ -288,7 +282,7 @@ public function attachPermission($permission) /** * Detach multiple permissions from current role. * - * @param mixed $permissions + * @param mixed $permissions */ public function detachPermissions($permissions) { @@ -300,7 +294,7 @@ public function detachPermissions($permissions) /** * Detach permission form current User. * - * @param object|array $permission + * @param object|array $permission */ public function detachPermission($permission) { diff --git a/app/Models/Auth/Traits/Methods/UserMethods.php b/app/Models/Auth/Traits/Methods/UserMethods.php index 5889e697..64b3738d 100755 --- a/app/Models/Auth/Traits/Methods/UserMethods.php +++ b/app/Models/Auth/Traits/Methods/UserMethods.php @@ -21,10 +21,10 @@ public function canChangePassword() } /** - * @param bool $size + * @param bool $size + * @return bool|\Illuminate\Contracts\Routing\UrlGenerator|mixed|string * * @throws \Illuminate\Container\EntryNotFoundException - * @return bool|\Illuminate\Contracts\Routing\UrlGenerator|mixed|string */ public function getPicture($size = false) { @@ -51,7 +51,6 @@ public function getPicture($size = false) /** * @param $provider - * * @return bool */ public function hasProvider($provider) diff --git a/app/Models/Auth/Traits/Scopes/RoleScopes.php b/app/Models/Auth/Traits/Scopes/RoleScopes.php index 2ea91c50..fad5d246 100755 --- a/app/Models/Auth/Traits/Scopes/RoleScopes.php +++ b/app/Models/Auth/Traits/Scopes/RoleScopes.php @@ -6,8 +6,7 @@ trait RoleScopes { /** * @param $query - * @param string $direction - * + * @param string $direction * @return mixed */ public function scopeSort($query, $direction = 'asc') diff --git a/app/Models/Auth/Traits/Scopes/UserScopes.php b/app/Models/Auth/Traits/Scopes/UserScopes.php index 19c79519..3c17c672 100755 --- a/app/Models/Auth/Traits/Scopes/UserScopes.php +++ b/app/Models/Auth/Traits/Scopes/UserScopes.php @@ -6,8 +6,7 @@ trait UserScopes { /** * @param $query - * @param bool $confirmed - * + * @param bool $confirmed * @return mixed */ public function scopeConfirmed($query, $confirmed = true) @@ -17,8 +16,7 @@ public function scopeConfirmed($query, $confirmed = true) /** * @param $query - * @param bool $status - * + * @param bool $status * @return mixed */ public function scopeActive($query, $status = true) diff --git a/app/Models/Auth/Traits/SendUserPasswordReset.php b/app/Models/Auth/Traits/SendUserPasswordReset.php index 8ce21e15..1390f0ae 100755 --- a/app/Models/Auth/Traits/SendUserPasswordReset.php +++ b/app/Models/Auth/Traits/SendUserPasswordReset.php @@ -12,7 +12,7 @@ trait SendUserPasswordReset /** * Send the password reset notification. * - * @param string $token + * @param string $token */ public function sendPasswordResetNotification($token) { diff --git a/app/Models/BaseModel.php b/app/Models/BaseModel.php index 5818437e..c4aef5f4 100755 --- a/app/Models/BaseModel.php +++ b/app/Models/BaseModel.php @@ -9,8 +9,7 @@ class BaseModel extends Model /** * Generate drop-down select data with basic IDs. * - * @param string $field_name - * + * @param string $field_name * @return array */ public static function getSelectData($field_name = 'name') @@ -24,8 +23,7 @@ public static function getSelectData($field_name = 'name') * Generate items for drop-down select data with basic IDs. * * @param $collection - * @param string $field_name - * + * @param string $field_name * @return array */ public static function getItems($collection, $field_name) diff --git a/app/Models/Traits/Uuid.php b/app/Models/Traits/Uuid.php index 62b44ba9..8c3b5788 100755 --- a/app/Models/Traits/Uuid.php +++ b/app/Models/Traits/Uuid.php @@ -12,7 +12,6 @@ trait Uuid /** * @param $query * @param $uuid - * * @return mixed */ public function scopeUuid($query, $uuid) diff --git a/app/Notifications/Backend/Auth/UserAccountActive.php b/app/Notifications/Backend/Auth/UserAccountActive.php index 6d457bbe..14b54a25 100755 --- a/app/Notifications/Backend/Auth/UserAccountActive.php +++ b/app/Notifications/Backend/Auth/UserAccountActive.php @@ -16,8 +16,7 @@ class UserAccountActive extends Notification /** * Get the notification's delivery channels. * - * @param mixed $notifiable - * + * @param mixed $notifiable * @return array */ public function via($notifiable) @@ -28,8 +27,7 @@ public function via($notifiable) /** * Get the mail representation of the notification. * - * @param mixed $notifiable - * + * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) diff --git a/app/Notifications/Frontend/Auth/UserNeedsConfirmation.php b/app/Notifications/Frontend/Auth/UserNeedsConfirmation.php index 4d27d676..bd57e533 100755 --- a/app/Notifications/Frontend/Auth/UserNeedsConfirmation.php +++ b/app/Notifications/Frontend/Auth/UserNeedsConfirmation.php @@ -31,8 +31,7 @@ public function __construct($confirmation_code) /** * Get the notification's delivery channels. * - * @param mixed $notifiable - * + * @param mixed $notifiable * @return array */ public function via($notifiable) @@ -43,8 +42,7 @@ public function via($notifiable) /** * Get the mail representation of the notification. * - * @param mixed $notifiable - * + * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) diff --git a/app/Notifications/Frontend/Auth/UserNeedsPasswordReset.php b/app/Notifications/Frontend/Auth/UserNeedsPasswordReset.php index 0eecee4d..9e2786e2 100755 --- a/app/Notifications/Frontend/Auth/UserNeedsPasswordReset.php +++ b/app/Notifications/Frontend/Auth/UserNeedsPasswordReset.php @@ -33,8 +33,7 @@ public function __construct($token) /** * Get the notification's channels. * - * @param mixed $notifiable - * + * @param mixed $notifiable * @return array|string */ public function via($notifiable) @@ -45,8 +44,7 @@ public function via($notifiable) /** * Build the mail representation of the notification. * - * @param mixed $notifiable - * + * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) diff --git a/app/Observers/User/UserObserver.php b/app/Observers/User/UserObserver.php index c9334087..bfd9ab05 100755 --- a/app/Observers/User/UserObserver.php +++ b/app/Observers/User/UserObserver.php @@ -33,7 +33,7 @@ public function updated(User $user): void } /** - * @param User $user + * @param User $user */ private function logPasswordHistory(User $user): void { diff --git a/app/Repositories/Backend/Auth/Permission/PermissionRepository.php b/app/Repositories/Backend/Auth/Permission/PermissionRepository.php index eb112fbd..1b1dbf68 100755 --- a/app/Repositories/Backend/Auth/Permission/PermissionRepository.php +++ b/app/Repositories/Backend/Auth/Permission/PermissionRepository.php @@ -42,11 +42,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws GeneralException - * - * @return bool */ public function create(array $input) { @@ -73,12 +72,11 @@ public function create(array $input) } /** - * @param Model $permission + * @param Model $permission * @param $input + * @return bool * * @throws GeneralException - * - * @return bool */ public function update($permission, array $input) { @@ -104,11 +102,10 @@ public function update($permission, array $input) } /** - * @param Model $permission + * @param Model $permission + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete($permission) { diff --git a/app/Repositories/Backend/Auth/PermissionRepository.php b/app/Repositories/Backend/Auth/PermissionRepository.php index f8ba9d60..393dc680 100755 --- a/app/Repositories/Backend/Auth/PermissionRepository.php +++ b/app/Repositories/Backend/Auth/PermissionRepository.php @@ -34,11 +34,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws GeneralException - * - * @return bool */ public function create(array $input) { @@ -66,12 +65,11 @@ public function create(array $input) } /** - * @param Model $permission + * @param Model $permission * @param $input + * @return bool * * @throws GeneralException - * - * @return bool */ public function update($permission, array $input) { @@ -97,11 +95,10 @@ public function update($permission, array $input) } /** - * @param \App\Models\Auth\Permission $permission + * @param \App\Models\Auth\Permission $permission + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete($permission) { diff --git a/app/Repositories/Backend/Auth/RoleRepository.php b/app/Repositories/Backend/Auth/RoleRepository.php index 82818e50..2049cd14 100755 --- a/app/Repositories/Backend/Auth/RoleRepository.php +++ b/app/Repositories/Backend/Auth/RoleRepository.php @@ -40,11 +40,11 @@ public function getForDataTable() } /** - * @param array $data + * @param array $data + * @return \App\Models\Auth\Role * * @throws GeneralException * @throws \Throwable - * @return \App\Models\Auth\Role */ public function create(array $input) { @@ -99,12 +99,12 @@ public function create(array $input) } /** - * @param \App\Models\Auth\Role $role - * @param array $data + * @param \App\Models\Auth\Role $role + * @param array $data + * @return mixed * * @throws GeneralException * @throws \Throwable - * @return mixed */ public function update(Role $role, array $input) { @@ -170,7 +170,6 @@ public function update(Role $role, array $input) /** * @param $name - * * @return bool */ protected function roleExists($name): bool @@ -181,11 +180,10 @@ protected function roleExists($name): bool } /** - * @param \App\Models\Auth\Role $role + * @param \App\Models\Auth\Role $role + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete(Role $role) { diff --git a/app/Repositories/Backend/Auth/SocialRepository.php b/app/Repositories/Backend/Auth/SocialRepository.php index a0b5d91b..e1cbf945 100755 --- a/app/Repositories/Backend/Auth/SocialRepository.php +++ b/app/Repositories/Backend/Auth/SocialRepository.php @@ -15,11 +15,11 @@ class SocialRepository const MODEL = SocialAccount::class; /** - * @param \App\Models\Auth\User $user - * @param App\Models\Auth\SocialAccount $social + * @param \App\Models\Auth\User $user + * @param App\Models\Auth\SocialAccount $social + * @return bool * * @throws GeneralException - * @return bool */ public function delete(User $user, SocialAccount $social) { diff --git a/app/Repositories/Backend/Auth/UserRepository.php b/app/Repositories/Backend/Auth/UserRepository.php index c233b8cf..f79679e7 100755 --- a/app/Repositories/Backend/Auth/UserRepository.php +++ b/app/Repositories/Backend/Auth/UserRepository.php @@ -31,9 +31,8 @@ class UserRepository extends BaseRepository const MODEL = User::class; /** - * @param int $status - * @param bool $trashed - * + * @param int $status + * @param bool $trashed * @return mixed */ public function getForDataTable($status = 1, $trashed = false) @@ -64,11 +63,11 @@ public function getForDataTable($status = 1, $trashed = false) } /** - * @param array $data + * @param array $data + * @return User * * @throws \Exception * @throws \Throwable - * @return User */ public function create(array $data) { @@ -103,13 +102,13 @@ public function create(array $data) } /** - * @param \App\Models\Auth\User $user - * @param array $data + * @param \App\Models\Auth\User $user + * @param array $data + * @return \App\Models\Auth\User * * @throws GeneralException * @throws \Exception * @throws \Throwable - * @return \App\Models\Auth\User */ public function update(User $user, array $data) { @@ -139,11 +138,10 @@ public function update(User $user, array $data) /** * Delete User. * - * @param App\Models\Auth\User $user + * @param App\Models\Auth\User $user + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete(User $user) { @@ -161,11 +159,11 @@ public function delete(User $user) } /** - * @param \App\Models\Auth\User $user - * @param $input + * @param \App\Models\Auth\User $user + * @param $input + * @return \App\Models\Auth\User * * @throws GeneralException - * @return \App\Models\Auth\User */ public function updatePassword(User $user, $input): User { @@ -179,11 +177,11 @@ public function updatePassword(User $user, $input): User } /** - * @param \App\Models\Auth\User $user - * @param int $status + * @param \App\Models\Auth\User $user + * @param int $status + * @return \App\Models\Auth\User * * @throws GeneralException - * @return \App\Models\Auth\User */ public function mark(User $user, $status): User { @@ -210,10 +208,10 @@ public function mark(User $user, $status): User } /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user + * @return \App\Models\Auth\User * * @throws GeneralException - * @return \App\Models\Auth\User */ public function confirm(User $user): User { @@ -239,10 +237,10 @@ public function confirm(User $user): User } /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user + * @return \App\Models\Auth\User * * @throws GeneralException - * @return \App\Models\Auth\User */ public function unconfirm(User $user): User { @@ -273,12 +271,12 @@ public function unconfirm(User $user): User } /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user + * @return \App\Models\Auth\User * * @throws GeneralException * @throws \Exception * @throws \Throwable - * @return \App\Models\Auth\User */ public function forceDelete(User $user) { @@ -302,10 +300,10 @@ public function forceDelete(User $user) } /** - * @param \App\Models\Auth\User $user + * @param \App\Models\Auth\User $user + * @return \App\Models\Auth\User * * @throws GeneralException - * @return \App\Models\Auth\User */ public function restore(User $user): User { @@ -324,7 +322,6 @@ public function restore(User $user): User /** * @param $input - * * @return mixed */ protected function createUserStub($input) @@ -368,10 +365,9 @@ public function getUnconfirmedCount(): int } /** - * @param int $paged - * @param string $orderBy - * @param string $sort - * + * @param int $paged + * @param string $orderBy + * @param string $sort * @return mixed */ public function getActivePaginated($paged = 25, $orderBy = 'created_at', $sort = 'desc'): LengthAwarePaginator @@ -384,10 +380,9 @@ public function getActivePaginated($paged = 25, $orderBy = 'created_at', $sort = } /** - * @param int $paged - * @param string $orderBy - * @param string $sort - * + * @param int $paged + * @param string $orderBy + * @param string $sort * @return LengthAwarePaginator */ public function getInactivePaginated($paged = 25, $orderBy = 'created_at', $sort = 'desc'): LengthAwarePaginator @@ -400,10 +395,9 @@ public function getInactivePaginated($paged = 25, $orderBy = 'created_at', $sort } /** - * @param int $paged - * @param string $orderBy - * @param string $sort - * + * @param int $paged + * @param string $orderBy + * @param string $sort * @return LengthAwarePaginator */ public function getDeletedPaginated($paged = 25, $orderBy = 'created_at', $sort = 'desc'): LengthAwarePaginator diff --git a/app/Repositories/Backend/BlogCategoriesRepository.php b/app/Repositories/Backend/BlogCategoriesRepository.php index c30cdb97..191305c6 100755 --- a/app/Repositories/Backend/BlogCategoriesRepository.php +++ b/app/Repositories/Backend/BlogCategoriesRepository.php @@ -33,6 +33,7 @@ class BlogCategoriesRepository extends BaseRepository * Retrieve List. * * @var array + * * @return Collection */ public function retrieveList(array $options = []) @@ -71,11 +72,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function create(array $input) { @@ -96,7 +96,7 @@ public function create(array $input) } /** - * @param \App\Models\BlogCategory $blogcategory + * @param \App\Models\BlogCategory $blogcategory * @param $input * * @throws \App\Exceptions\GeneralException @@ -122,11 +122,10 @@ public function update(BlogCategory $blogcategory, array $input) } /** - * @param \App\Models\BlogCategory $blogcategory + * @param \App\Models\BlogCategory $blogcategory + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function delete(BlogCategory $blogcategory) { diff --git a/app/Repositories/Backend/BlogTagsRepository.php b/app/Repositories/Backend/BlogTagsRepository.php index 4f9966b2..39b377b9 100755 --- a/app/Repositories/Backend/BlogTagsRepository.php +++ b/app/Repositories/Backend/BlogTagsRepository.php @@ -33,6 +33,7 @@ class BlogTagsRepository extends BaseRepository * Retrieve List. * * @var array + * * @return Collection */ public function retrieveList(array $options = []) @@ -71,11 +72,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function create(array $input) { @@ -96,7 +96,7 @@ public function create(array $input) } /** - * @param \App\Models\BlogTag $blogtag + * @param \App\Models\BlogTag $blogtag * @param $input * * @throws \App\Exceptions\GeneralException @@ -122,11 +122,10 @@ public function update(BlogTag $blogtag, array $input) } /** - * @param \App\Models\BlogTag $blogtag + * @param \App\Models\BlogTag $blogtag + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function delete(BlogTag $blogtag) { diff --git a/app/Repositories/Backend/BlogsRepository.php b/app/Repositories/Backend/BlogsRepository.php index 9d29b002..32d8c1c9 100755 --- a/app/Repositories/Backend/BlogsRepository.php +++ b/app/Repositories/Backend/BlogsRepository.php @@ -60,6 +60,7 @@ public function __construct() * Retrieve List. * * @var array + * * @return Collection */ public function retrieveList(array $options = []) @@ -100,11 +101,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function create(array $input) { @@ -141,8 +141,8 @@ public function create(array $input) } /** - * @param \App\Models\Blog $blog - * @param array $input + * @param \App\Models\Blog $blog + * @param array $input */ public function update(Blog $blog, array $input) { @@ -185,8 +185,7 @@ public function update(Blog $blog, array $input) /** * Creating Tags. * - * @param array $tags - * + * @param array $tags * @return array */ public function createTags($tags) @@ -218,8 +217,7 @@ public function createTags($tags) /** * Creating Categories. * - * @param array $categories - * + * @param array $categories * @return array */ public function createCategories($categories) @@ -250,11 +248,10 @@ public function createCategories($categories) } /** - * @param \App\Models\Blogs\Blog $blog + * @param \App\Models\Blogs\Blog $blog + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete(Blog $blog) { @@ -275,8 +272,7 @@ public function delete(Blog $blog) /** * Upload Image. * - * @param array $input - * + * @param array $input * @return array $input */ public function uploadImage($input) @@ -296,7 +292,7 @@ public function uploadImage($input) /** * Destroy Old Image. * - * @param int $id + * @param int $id */ public function deleteOldFile($model) { diff --git a/app/Repositories/Backend/EmailTemplatesRepository.php b/app/Repositories/Backend/EmailTemplatesRepository.php index e75a36ee..99e2a79c 100755 --- a/app/Repositories/Backend/EmailTemplatesRepository.php +++ b/app/Repositories/Backend/EmailTemplatesRepository.php @@ -18,10 +18,9 @@ class EmailTemplatesRepository extends BaseRepository const MODEL = EmailTemplate::class; /** - * @param int $paged - * @param string $orderBy - * @param string $sort - * + * @param int $paged + * @param string $orderBy + * @param string $sort * @return mixed */ public function getActivePaginated($paged = 25, $orderBy = 'created_at', $sort = 'desc') @@ -57,11 +56,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function create(array $input) { @@ -79,8 +77,8 @@ public function create(array $input) } /** - * @param \App\Models\EmailTemplate $emailTemplate - * @param array $input + * @param \App\Models\EmailTemplate $emailTemplate + * @param array $input */ public function update(EmailTemplate $emailTemplate, array $input) { @@ -97,11 +95,10 @@ public function update(EmailTemplate $emailTemplate, array $input) } /** - * @param \App\Models\EmailTemplate $emailTemplate + * @param \App\Models\EmailTemplate $emailTemplate + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete(EmailTemplate $emailTemplate) { diff --git a/app/Repositories/Backend/FaqsRepository.php b/app/Repositories/Backend/FaqsRepository.php index cb6a263f..bd63f14f 100755 --- a/app/Repositories/Backend/FaqsRepository.php +++ b/app/Repositories/Backend/FaqsRepository.php @@ -34,6 +34,7 @@ class FaqsRepository extends BaseRepository * Retrieve List. * * @var array + * * @return Collection */ public function retrieveList(array $options = []) @@ -67,11 +68,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function create(array $input) { @@ -88,8 +88,8 @@ public function create(array $input) } /** - * @param \App\Models\Faq $faq - * @param array $input + * @param \App\Models\Faq $faq + * @param array $input */ public function update(Faq $faq, array $input) { @@ -106,11 +106,10 @@ public function update(Faq $faq, array $input) } /** - * @param \App\Models\Faq $faq + * @param \App\Models\Faq $faq + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete(Faq $faq) { diff --git a/app/Repositories/Backend/PagesRepository.php b/app/Repositories/Backend/PagesRepository.php index 2c40a81a..868e4b26 100755 --- a/app/Repositories/Backend/PagesRepository.php +++ b/app/Repositories/Backend/PagesRepository.php @@ -37,6 +37,7 @@ class PagesRepository extends BaseRepository * Retrieve List. * * @var array + * * @return Collection */ public function retrieveList(array $options = []) @@ -75,11 +76,10 @@ public function getForDataTable() } /** - * @param array $input + * @param array $input + * @return bool * * @throws \App\Exceptions\GeneralException - * - * @return bool */ public function create(array $input) { @@ -103,8 +103,8 @@ public function create(array $input) /** * Update Page. * - * @param \App\Models\Page $page - * @param array $input + * @param \App\Models\Page $page + * @param array $input */ public function update(Page $page, array $input) { @@ -128,11 +128,10 @@ public function update(Page $page, array $input) } /** - * @param \App\Models\Page $page + * @param \App\Models\Page $page + * @return bool * * @throws GeneralException - * - * @return bool */ public function delete(Page $page) { diff --git a/app/Repositories/BaseRepository.php b/app/Repositories/BaseRepository.php index cff99827..452cd4fc 100755 --- a/app/Repositories/BaseRepository.php +++ b/app/Repositories/BaseRepository.php @@ -16,10 +16,9 @@ public function getAll() * Get Paginated. * * @param $per_page - * @param string $active - * @param string $order_by - * @param string $sort - * + * @param string $active + * @param string $order_by + * @param string $sort * @return mixed */ public function getPaginated($per_page, $active = '', $order_by = 'id', $sort = 'asc') @@ -44,7 +43,6 @@ public function getCount() /** * @param $id - * * @return mixed */ public function find($id) @@ -55,9 +53,8 @@ public function find($id) /** * Find Record based on specific column. * - * @param string $value - * @param string $column_name - * + * @param string $value + * @param string $column_name * @return mixed */ public function getByColumn($value, $column_name = 'id') @@ -76,8 +73,7 @@ public function query() /** * Generate drop-down select data with basic IDs. * - * @param string $field_name - * + * @param string $field_name * @return array */ public function getSelectData($field_name = 'name') diff --git a/app/Repositories/Frontend/Auth/UserRepository.php b/app/Repositories/Frontend/Auth/UserRepository.php index 79b29bcf..1a6a607e 100755 --- a/app/Repositories/Frontend/Auth/UserRepository.php +++ b/app/Repositories/Frontend/Auth/UserRepository.php @@ -26,11 +26,11 @@ class UserRepository extends BaseRepository const MODEL = User::class; /** - * @param $input - * @param bool $expired + * @param $input + * @param bool $expired + * @return bool * * @throws GeneralException - * @return bool */ public function updatePassword($input, $expired = false) { @@ -49,11 +49,11 @@ public function updatePassword($input, $expired = false) /** * @param \App\Models\Auth\User; - * @param array $input - * @param bool|UploadedFile $image + * @param array $input + * @param bool|UploadedFile $image + * @return array|bool * * @throws GeneralException - * @return array|bool */ public function update(User $user, array $input, $image = false) { @@ -111,11 +111,11 @@ public function update(User $user, array $input, $image = false) } /** - * @param array $data + * @param array $data + * @return \Illuminate\Database\Eloquent\Model|mixed * * @throws \Exception * @throws \Throwable - * @return \Illuminate\Database\Eloquent\Model|mixed */ public function create(array $data) { @@ -148,7 +148,6 @@ public function create(array $data) /** * @param $input - * * @return mixed */ protected function createUserStub($input) @@ -167,9 +166,9 @@ protected function createUserStub($input) /** * @param $code + * @return bool * * @throws GeneralException - * @return bool */ public function confirm($code) { @@ -192,9 +191,9 @@ public function confirm($code) /** * @param $code + * @return mixed * * @throws GeneralException - * @return mixed */ public function findByConfirmationCode($code) { @@ -211,7 +210,6 @@ public function findByConfirmationCode($code) /** * @param $token - * * @return bool|\Illuminate\Database\Eloquent\Model */ public function findByPasswordResetToken($token) @@ -227,9 +225,9 @@ public function findByPasswordResetToken($token) /** * @param $uuid + * @return mixed * * @throws GeneralException - * @return mixed */ public function findByUuid($uuid) { @@ -247,9 +245,9 @@ public function findByUuid($uuid) /** * @param $data * @param $provider + * @return mixed * * @throws GeneralException - * @return mixed */ public function findOrCreateProvider($data, $provider) { @@ -317,7 +315,6 @@ public function findOrCreateProvider($data, $provider) /** * @param $fullName - * * @return array */ protected function getNameParts($fullName) diff --git a/app/Services/Access.php b/app/Services/Access.php index 00e8fb8c..275aefd9 100755 --- a/app/Services/Access.php +++ b/app/Services/Access.php @@ -44,8 +44,8 @@ public function id() } /** - * @param Authenticatable $user - * @param bool $remember + * @param Authenticatable $user + * @param bool $remember */ public function login(Authenticatable $user, $remember = false) { @@ -54,7 +54,6 @@ public function login(Authenticatable $user, $remember = false) /** * @param $id - * * @return mixed */ public function loginUsingId($id) @@ -65,8 +64,7 @@ public function loginUsingId($id) /** * Checks if the current user has a Role by its name or id. * - * @param string $role Role name. - * + * @param string $role Role name. * @return bool */ public function hasRole($role) @@ -82,8 +80,7 @@ public function hasRole($role) * Checks if the user has either one or more, or all of an array of roles. * * @param $roles - * @param bool $needsAll - * + * @param bool $needsAll * @return bool */ public function hasRoles($roles, $needsAll = false) @@ -98,8 +95,7 @@ public function hasRoles($roles, $needsAll = false) /** * Check if the current user has a permission by its name or id. * - * @param string $permission Permission name or id. - * + * @param string $permission Permission name or id. * @return bool */ public function allow($permission) @@ -116,7 +112,6 @@ public function allow($permission) * * @param $permissions * @param $needsAll - * * @return bool */ public function allowMultiple($permissions, $needsAll = false) @@ -130,7 +125,6 @@ public function allowMultiple($permissions, $needsAll = false) /** * @param $permission - * * @return bool */ public function hasPermission($permission) @@ -141,7 +135,6 @@ public function hasPermission($permission) /** * @param $permissions * @param $needsAll - * * @return bool */ public function hasPermissions($permissions, $needsAll = false) diff --git a/database/seeds/Auth/RoleTableSeeder.php b/database/seeds/Auth/RoleTableSeeder.php index b02b3c04..99812ce4 100755 --- a/database/seeds/Auth/RoleTableSeeder.php +++ b/database/seeds/Auth/RoleTableSeeder.php @@ -1,6 +1,6 @@ state('active')->create(); $inactiveUsers = factory(User::class, 5)->state('inactive')->create(); - $activeDeletesUsers = factory(User::class, 4)->states('active', 'softDeleted', )->create(); - $inactiveDeletedUsers = factory(User::class, 3)->states('inactive', 'softDeleted', )->create(); + $activeDeletesUsers = factory(User::class, 4)->states('active', 'softDeleted')->create(); + $inactiveDeletedUsers = factory(User::class, 3)->states('inactive', 'softDeleted')->create(); $this->assertCount($aciveUsers->count(), $this->userRepository->getForDataTable(1, false)->get()->toArray()); } @@ -460,8 +460,8 @@ public function getForDataTable_will_provide_inactive_users_for_datatable() { $aciveUsers = factory(User::class, 6)->state('active')->create(); $inactiveUsers = factory(User::class, 5)->state('inactive')->create(); - $activeDeletesUsers = factory(User::class, 4)->states('active', 'softDeleted', )->create(); - $inactiveDeletedUsers = factory(User::class, 3)->states('inactive', 'softDeleted', )->create(); + $activeDeletesUsers = factory(User::class, 4)->states('active', 'softDeleted')->create(); + $inactiveDeletedUsers = factory(User::class, 3)->states('inactive', 'softDeleted')->create(); $this->assertCount($inactiveUsers->count(), $this->userRepository->getForDataTable(0, false)->get()->toArray()); } @@ -473,8 +473,8 @@ public function getForDataTable_will_provide_deleted_users_for_datatable() { $aciveUsers = factory(User::class, 6)->state('active')->create(); $inactiveUsers = factory(User::class, 5)->state('inactive')->create(); - $activeDeletesUsers = factory(User::class, 4)->states('active', 'softDeleted', )->create(); - $inactiveDeletedUsers = factory(User::class, 3)->states('inactive', 'softDeleted', )->create(); + $activeDeletesUsers = factory(User::class, 4)->states('active', 'softDeleted')->create(); + $inactiveDeletedUsers = factory(User::class, 3)->states('inactive', 'softDeleted')->create(); $deletedUserCount = $activeDeletesUsers->count() + $inactiveDeletedUsers->count();