From 1992f51f1e8d062680764dbcfbb0bddb4ebe24c1 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 30 Aug 2024 13:19:28 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../Models/Traits/Scope/AnnouncementScope.php | 8 ++++---- app/Domains/Auth/Events/Role/RoleCreated.php | 2 +- app/Domains/Auth/Events/Role/RoleDeleted.php | 2 +- app/Domains/Auth/Events/Role/RoleUpdated.php | 2 +- app/Domains/Auth/Events/User/UserCreated.php | 2 +- app/Domains/Auth/Events/User/UserDeleted.php | 2 +- app/Domains/Auth/Events/User/UserDestroyed.php | 2 +- app/Domains/Auth/Events/User/UserLoggedIn.php | 2 +- app/Domains/Auth/Events/User/UserRestored.php | 2 +- .../Auth/Events/User/UserStatusChanged.php | 2 +- app/Domains/Auth/Events/User/UserUpdated.php | 2 +- .../Backend/User/DeactivatedUserController.php | 2 +- .../Frontend/Auth/LoginController.php | 2 +- .../Frontend/Auth/SocialController.php | 4 ++-- .../Auth/Http/Middleware/AdminCheck.php | 2 +- .../Auth/Http/Middleware/PasswordExpires.php | 2 +- .../Auth/Http/Middleware/SuperAdminCheck.php | 2 +- .../TwoFactorAuthenticationStatus.php | 2 +- app/Domains/Auth/Http/Middleware/UserCheck.php | 2 +- .../Auth/Http/Middleware/UserTypeCheck.php | 4 ++-- .../Auth/Listeners/RoleEventListener.php | 6 +++--- .../Auth/Listeners/UserEventListener.php | 16 ++++++++-------- .../Models/Traits/Attribute/UserAttribute.php | 2 +- .../Auth/Models/Traits/Method/UserMethod.php | 2 +- .../Models/Traits/Scope/PermissionScope.php | 8 ++++---- .../Auth/Models/Traits/Scope/RoleScope.php | 4 ++-- .../Auth/Models/Traits/Scope/UserScope.php | 18 +++++++++--------- app/Domains/Auth/Rules/UnusedPassword.php | 2 +- app/Domains/Auth/Services/UserService.php | 10 +++++----- app/Helpers/Global/GeneralHelper.php | 2 +- app/Helpers/Global/LocaleHelper.php | 18 ++++++------------ app/Helpers/Global/SystemHelper.php | 5 ++--- app/Http/Controllers/LocaleController.php | 2 +- app/Models/Traits/Uuid.php | 4 ++-- app/Services/BaseService.php | 10 +++++----- ...0_02_25_034148_create_permission_tables.php | 4 ++-- database/seeders/Traits/TruncateTable.php | 4 ++-- 37 files changed, 80 insertions(+), 87 deletions(-) diff --git a/app/Domains/Announcement/Models/Traits/Scope/AnnouncementScope.php b/app/Domains/Announcement/Models/Traits/Scope/AnnouncementScope.php index cf5366970c..c2d57bcd48 100644 --- a/app/Domains/Announcement/Models/Traits/Scope/AnnouncementScope.php +++ b/app/Domains/Announcement/Models/Traits/Scope/AnnouncementScope.php @@ -8,7 +8,7 @@ trait AnnouncementScope { /** - * @param $query + * @param $query * @return mixed */ public function scopeEnabled($query) @@ -17,8 +17,8 @@ public function scopeEnabled($query) } /** - * @param $query - * @param $area + * @param $query + * @param $area * @return mixed */ public function scopeForArea($query, $area) @@ -30,7 +30,7 @@ public function scopeForArea($query, $area) } /** - * @param $query + * @param $query * @return mixed */ public function scopeInTimeFrame($query) diff --git a/app/Domains/Auth/Events/Role/RoleCreated.php b/app/Domains/Auth/Events/Role/RoleCreated.php index 4acc86a9e7..569b2f6857 100644 --- a/app/Domains/Auth/Events/Role/RoleCreated.php +++ b/app/Domains/Auth/Events/Role/RoleCreated.php @@ -18,7 +18,7 @@ class RoleCreated public $role; /** - * @param $role + * @param $role */ public function __construct(Role $role) { diff --git a/app/Domains/Auth/Events/Role/RoleDeleted.php b/app/Domains/Auth/Events/Role/RoleDeleted.php index 0626e02cbc..3c680ec81b 100644 --- a/app/Domains/Auth/Events/Role/RoleDeleted.php +++ b/app/Domains/Auth/Events/Role/RoleDeleted.php @@ -18,7 +18,7 @@ class RoleDeleted public $role; /** - * @param $role + * @param $role */ public function __construct(Role $role) { diff --git a/app/Domains/Auth/Events/Role/RoleUpdated.php b/app/Domains/Auth/Events/Role/RoleUpdated.php index afb06c02c1..ef4c8801dc 100644 --- a/app/Domains/Auth/Events/Role/RoleUpdated.php +++ b/app/Domains/Auth/Events/Role/RoleUpdated.php @@ -18,7 +18,7 @@ class RoleUpdated public $role; /** - * @param $role + * @param $role */ public function __construct(Role $role) { diff --git a/app/Domains/Auth/Events/User/UserCreated.php b/app/Domains/Auth/Events/User/UserCreated.php index 716e0e4783..567e6f0437 100644 --- a/app/Domains/Auth/Events/User/UserCreated.php +++ b/app/Domains/Auth/Events/User/UserCreated.php @@ -18,7 +18,7 @@ class UserCreated public $user; /** - * @param $user + * @param $user */ public function __construct(User $user) { diff --git a/app/Domains/Auth/Events/User/UserDeleted.php b/app/Domains/Auth/Events/User/UserDeleted.php index d0f5da921b..c5fc69fb19 100644 --- a/app/Domains/Auth/Events/User/UserDeleted.php +++ b/app/Domains/Auth/Events/User/UserDeleted.php @@ -18,7 +18,7 @@ class UserDeleted public $user; /** - * @param $user + * @param $user */ public function __construct(User $user) { diff --git a/app/Domains/Auth/Events/User/UserDestroyed.php b/app/Domains/Auth/Events/User/UserDestroyed.php index 20d78a023d..363fee24d9 100644 --- a/app/Domains/Auth/Events/User/UserDestroyed.php +++ b/app/Domains/Auth/Events/User/UserDestroyed.php @@ -18,7 +18,7 @@ class UserDestroyed public $user; /** - * @param $user + * @param $user */ public function __construct(User $user) { diff --git a/app/Domains/Auth/Events/User/UserLoggedIn.php b/app/Domains/Auth/Events/User/UserLoggedIn.php index 8cb31c6196..e4e7366108 100644 --- a/app/Domains/Auth/Events/User/UserLoggedIn.php +++ b/app/Domains/Auth/Events/User/UserLoggedIn.php @@ -18,7 +18,7 @@ class UserLoggedIn public $user; /** - * @param $user + * @param $user */ public function __construct(User $user) { diff --git a/app/Domains/Auth/Events/User/UserRestored.php b/app/Domains/Auth/Events/User/UserRestored.php index 7c65c2b188..161f1e6674 100644 --- a/app/Domains/Auth/Events/User/UserRestored.php +++ b/app/Domains/Auth/Events/User/UserRestored.php @@ -18,7 +18,7 @@ class UserRestored public $user; /** - * @param $user + * @param $user */ public function __construct(User $user) { diff --git a/app/Domains/Auth/Events/User/UserStatusChanged.php b/app/Domains/Auth/Events/User/UserStatusChanged.php index 5f7953efc9..d78a833080 100644 --- a/app/Domains/Auth/Events/User/UserStatusChanged.php +++ b/app/Domains/Auth/Events/User/UserStatusChanged.php @@ -26,7 +26,7 @@ class UserStatusChanged * UserStatusChanged constructor. * * @param User $user - * @param $status + * @param $status */ public function __construct(User $user, $status) { diff --git a/app/Domains/Auth/Events/User/UserUpdated.php b/app/Domains/Auth/Events/User/UserUpdated.php index a4b37b3708..7e9da52b49 100644 --- a/app/Domains/Auth/Events/User/UserUpdated.php +++ b/app/Domains/Auth/Events/User/UserUpdated.php @@ -18,7 +18,7 @@ class UserUpdated public $user; /** - * @param $user + * @param $user */ public function __construct(User $user) { diff --git a/app/Domains/Auth/Http/Controllers/Backend/User/DeactivatedUserController.php b/app/Domains/Auth/Http/Controllers/Backend/User/DeactivatedUserController.php index 75dd9b898e..9322febeb1 100644 --- a/app/Domains/Auth/Http/Controllers/Backend/User/DeactivatedUserController.php +++ b/app/Domains/Auth/Http/Controllers/Backend/User/DeactivatedUserController.php @@ -37,7 +37,7 @@ public function index() /** * @param Request $request * @param User $user - * @param $status + * @param $status * @return mixed * * @throws \App\Exceptions\GeneralException diff --git a/app/Domains/Auth/Http/Controllers/Frontend/Auth/LoginController.php b/app/Domains/Auth/Http/Controllers/Frontend/Auth/LoginController.php index f99ad03a87..6c0916b6ad 100644 --- a/app/Domains/Auth/Http/Controllers/Frontend/Auth/LoginController.php +++ b/app/Domains/Auth/Http/Controllers/Frontend/Auth/LoginController.php @@ -93,7 +93,7 @@ protected function attemptLogin(Request $request) * The user has been authenticated. * * @param Request $request - * @param $user + * @param $user * @return mixed */ protected function authenticated(Request $request, $user) diff --git a/app/Domains/Auth/Http/Controllers/Frontend/Auth/SocialController.php b/app/Domains/Auth/Http/Controllers/Frontend/Auth/SocialController.php index a6d393826e..14ab2f0051 100644 --- a/app/Domains/Auth/Http/Controllers/Frontend/Auth/SocialController.php +++ b/app/Domains/Auth/Http/Controllers/Frontend/Auth/SocialController.php @@ -12,7 +12,7 @@ class SocialController { /** - * @param $provider + * @param $provider * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function redirect($provider) @@ -21,7 +21,7 @@ public function redirect($provider) } /** - * @param $provider + * @param $provider * @param UserService $userService * @return \Illuminate\Http\RedirectResponse * diff --git a/app/Domains/Auth/Http/Middleware/AdminCheck.php b/app/Domains/Auth/Http/Middleware/AdminCheck.php index e6734bb8a9..7fe919ac48 100644 --- a/app/Domains/Auth/Http/Middleware/AdminCheck.php +++ b/app/Domains/Auth/Http/Middleware/AdminCheck.php @@ -11,7 +11,7 @@ class AdminCheck { /** - * @param $request + * @param $request * @param Closure $next * @return mixed */ diff --git a/app/Domains/Auth/Http/Middleware/PasswordExpires.php b/app/Domains/Auth/Http/Middleware/PasswordExpires.php index 7d15544bf2..f1076a0a0b 100644 --- a/app/Domains/Auth/Http/Middleware/PasswordExpires.php +++ b/app/Domains/Auth/Http/Middleware/PasswordExpires.php @@ -11,7 +11,7 @@ class PasswordExpires { /** - * @param $request + * @param $request * @param Closure $next * @return \Illuminate\Http\RedirectResponse|mixed * diff --git a/app/Domains/Auth/Http/Middleware/SuperAdminCheck.php b/app/Domains/Auth/Http/Middleware/SuperAdminCheck.php index 67d3e44bee..40335f8c9d 100644 --- a/app/Domains/Auth/Http/Middleware/SuperAdminCheck.php +++ b/app/Domains/Auth/Http/Middleware/SuperAdminCheck.php @@ -10,7 +10,7 @@ class SuperAdminCheck { /** - * @param $request + * @param $request * @param Closure $next * @return mixed */ diff --git a/app/Domains/Auth/Http/Middleware/TwoFactorAuthenticationStatus.php b/app/Domains/Auth/Http/Middleware/TwoFactorAuthenticationStatus.php index aac56b3dd8..4891def340 100644 --- a/app/Domains/Auth/Http/Middleware/TwoFactorAuthenticationStatus.php +++ b/app/Domains/Auth/Http/Middleware/TwoFactorAuthenticationStatus.php @@ -10,7 +10,7 @@ class TwoFactorAuthenticationStatus { /** - * @param $request + * @param $request * @param Closure $next * @param string $status * @return mixed diff --git a/app/Domains/Auth/Http/Middleware/UserCheck.php b/app/Domains/Auth/Http/Middleware/UserCheck.php index fdd682e360..9311f39b05 100644 --- a/app/Domains/Auth/Http/Middleware/UserCheck.php +++ b/app/Domains/Auth/Http/Middleware/UserCheck.php @@ -11,7 +11,7 @@ class UserCheck { /** - * @param $request + * @param $request * @param Closure $next * @return mixed */ diff --git a/app/Domains/Auth/Http/Middleware/UserTypeCheck.php b/app/Domains/Auth/Http/Middleware/UserTypeCheck.php index c065fd3f73..9bbb1a1fc3 100644 --- a/app/Domains/Auth/Http/Middleware/UserTypeCheck.php +++ b/app/Domains/Auth/Http/Middleware/UserTypeCheck.php @@ -10,9 +10,9 @@ class UserTypeCheck { /** - * @param $request + * @param $request * @param Closure $next - * @param $type + * @param $type * @return mixed */ public function handle($request, Closure $next, $type) diff --git a/app/Domains/Auth/Listeners/RoleEventListener.php b/app/Domains/Auth/Listeners/RoleEventListener.php index 0c631e610b..b3ca36154c 100644 --- a/app/Domains/Auth/Listeners/RoleEventListener.php +++ b/app/Domains/Auth/Listeners/RoleEventListener.php @@ -12,7 +12,7 @@ class RoleEventListener { /** - * @param $event + * @param $event */ public function onCreated($event) { @@ -29,7 +29,7 @@ public function onCreated($event) } /** - * @param $event + * @param $event */ public function onUpdated($event) { @@ -46,7 +46,7 @@ public function onUpdated($event) } /** - * @param $event + * @param $event */ public function onDeleted($event) { diff --git a/app/Domains/Auth/Listeners/UserEventListener.php b/app/Domains/Auth/Listeners/UserEventListener.php index ac430c7caa..dfd3cd9553 100644 --- a/app/Domains/Auth/Listeners/UserEventListener.php +++ b/app/Domains/Auth/Listeners/UserEventListener.php @@ -17,7 +17,7 @@ class UserEventListener { /** - * @param $event + * @param $event */ public function onLoggedIn($event) { @@ -29,7 +29,7 @@ public function onLoggedIn($event) } /** - * @param $event + * @param $event */ public function onPasswordReset($event) { @@ -39,7 +39,7 @@ public function onPasswordReset($event) } /** - * @param $event + * @param $event */ public function onCreated($event) { @@ -60,7 +60,7 @@ public function onCreated($event) } /** - * @param $event + * @param $event */ public function onUpdated($event) { @@ -79,7 +79,7 @@ public function onUpdated($event) } /** - * @param $event + * @param $event */ public function onDeleted($event) { @@ -89,7 +89,7 @@ public function onDeleted($event) } /** - * @param $event + * @param $event */ public function onRestored($event) { @@ -99,7 +99,7 @@ public function onRestored($event) } /** - * @param $event + * @param $event */ public function onDestroyed($event) { @@ -109,7 +109,7 @@ public function onDestroyed($event) } /** - * @param $event + * @param $event */ public function onStatusChanged($event) { diff --git a/app/Domains/Auth/Models/Traits/Attribute/UserAttribute.php b/app/Domains/Auth/Models/Traits/Attribute/UserAttribute.php index 65bc674bfa..30fd167480 100644 --- a/app/Domains/Auth/Models/Traits/Attribute/UserAttribute.php +++ b/app/Domains/Auth/Models/Traits/Attribute/UserAttribute.php @@ -10,7 +10,7 @@ trait UserAttribute { /** - * @param $password + * @param $password */ public function setPasswordAttribute($password): void { diff --git a/app/Domains/Auth/Models/Traits/Method/UserMethod.php b/app/Domains/Auth/Models/Traits/Method/UserMethod.php index 51e0615306..28302521d1 100644 --- a/app/Domains/Auth/Models/Traits/Method/UserMethod.php +++ b/app/Domains/Auth/Models/Traits/Method/UserMethod.php @@ -42,7 +42,7 @@ public function hasAllAccess(): bool } /** - * @param $type + * @param $type * @return bool */ public function isType($type): bool diff --git a/app/Domains/Auth/Models/Traits/Scope/PermissionScope.php b/app/Domains/Auth/Models/Traits/Scope/PermissionScope.php index 2dbafd5d59..3a490072e8 100644 --- a/app/Domains/Auth/Models/Traits/Scope/PermissionScope.php +++ b/app/Domains/Auth/Models/Traits/Scope/PermissionScope.php @@ -8,7 +8,7 @@ trait PermissionScope { /** - * @param $query + * @param $query * @return mixed */ public function scopeIsMaster($query) @@ -18,7 +18,7 @@ public function scopeIsMaster($query) } /** - * @param $query + * @param $query * @return mixed */ public function scopeIsParent($query) @@ -27,7 +27,7 @@ public function scopeIsParent($query) } /** - * @param $query + * @param $query * @return mixed */ public function scopeIsChild($query) @@ -36,7 +36,7 @@ public function scopeIsChild($query) } /** - * @param $query + * @param $query * @return mixed */ public function scopeSingular($query) diff --git a/app/Domains/Auth/Models/Traits/Scope/RoleScope.php b/app/Domains/Auth/Models/Traits/Scope/RoleScope.php index 8f3473e4e9..33aedc2ac5 100644 --- a/app/Domains/Auth/Models/Traits/Scope/RoleScope.php +++ b/app/Domains/Auth/Models/Traits/Scope/RoleScope.php @@ -8,8 +8,8 @@ trait RoleScope { /** - * @param $query - * @param $term + * @param $query + * @param $term * @return mixed */ public function scopeSearch($query, $term) diff --git a/app/Domains/Auth/Models/Traits/Scope/UserScope.php b/app/Domains/Auth/Models/Traits/Scope/UserScope.php index d9c59f7fcb..4f4f96384a 100644 --- a/app/Domains/Auth/Models/Traits/Scope/UserScope.php +++ b/app/Domains/Auth/Models/Traits/Scope/UserScope.php @@ -8,8 +8,8 @@ trait UserScope { /** - * @param $query - * @param $term + * @param $query + * @param $term * @return mixed */ public function scopeSearch($query, $term) @@ -21,7 +21,7 @@ public function scopeSearch($query, $term) } /** - * @param $query + * @param $query * @return mixed */ public function scopeOnlyDeactivated($query) @@ -30,7 +30,7 @@ public function scopeOnlyDeactivated($query) } /** - * @param $query + * @param $query * @return mixed */ public function scopeOnlyActive($query) @@ -39,8 +39,8 @@ public function scopeOnlyActive($query) } /** - * @param $query - * @param $type + * @param $query + * @param $type * @return mixed */ public function scopeByType($query, $type) @@ -49,7 +49,7 @@ public function scopeByType($query, $type) } /** - * @param $query + * @param $query * @return mixed */ public function scopeAllAccess($query) @@ -60,7 +60,7 @@ public function scopeAllAccess($query) } /** - * @param $query + * @param $query * @return mixed */ public function scopeAdmins($query) @@ -69,7 +69,7 @@ public function scopeAdmins($query) } /** - * @param $query + * @param $query * @return mixed */ public function scopeUsers($query) diff --git a/app/Domains/Auth/Rules/UnusedPassword.php b/app/Domains/Auth/Rules/UnusedPassword.php index 283ac9928a..11be82e633 100644 --- a/app/Domains/Auth/Rules/UnusedPassword.php +++ b/app/Domains/Auth/Rules/UnusedPassword.php @@ -22,7 +22,7 @@ class UnusedPassword implements Rule * * UnusedPassword constructor. * - * @param $user + * @param $user */ public function __construct($user) { diff --git a/app/Domains/Auth/Services/UserService.php b/app/Domains/Auth/Services/UserService.php index f1bdaeac22..e1c28ec3ff 100644 --- a/app/Domains/Auth/Services/UserService.php +++ b/app/Domains/Auth/Services/UserService.php @@ -31,7 +31,7 @@ public function __construct(User $user) } /** - * @param $type + * @param $type * @param bool|int $perPage * @return mixed */ @@ -68,8 +68,8 @@ public function registerUser(array $data = []): User } /** - * @param $info - * @param $provider + * @param $info + * @param $provider * @return mixed * * @throws GeneralException @@ -205,7 +205,7 @@ public function updateProfile(User $user, array $data = []): User /** * @param User $user - * @param $data + * @param $data * @param bool $expired * @return User * @@ -232,7 +232,7 @@ public function updatePassword(User $user, $data, $expired = false): User /** * @param User $user - * @param $status + * @param $status * @return User * * @throws GeneralException diff --git a/app/Helpers/Global/GeneralHelper.php b/app/Helpers/Global/GeneralHelper.php index 57e7c5b984..750187fdc4 100644 --- a/app/Helpers/Global/GeneralHelper.php +++ b/app/Helpers/Global/GeneralHelper.php @@ -18,7 +18,7 @@ function appName() /** * Create a new Carbon instance from a time. * - * @param $time + * @param $time * @return Carbon * * @throws Exception diff --git a/app/Helpers/Global/LocaleHelper.php b/app/Helpers/Global/LocaleHelper.php index 8748c8c482..100353bb39 100644 --- a/app/Helpers/Global/LocaleHelper.php +++ b/app/Helpers/Global/LocaleHelper.php @@ -3,9 +3,8 @@ use Carbon\Carbon; if (! function_exists('setAllLocale')) { - /** - * @param $locale + * @param $locale */ function setAllLocale($locale) { @@ -17,9 +16,8 @@ function setAllLocale($locale) } if (! function_exists('setAppLocale')) { - /** - * @param $locale + * @param $locale */ function setAppLocale($locale) { @@ -28,9 +26,8 @@ function setAppLocale($locale) } if (! function_exists('setPHPLocale')) { - /** - * @param $locale + * @param $locale */ function setPHPLocale($locale) { @@ -39,9 +36,8 @@ function setPHPLocale($locale) } if (! function_exists('setCarbonLocale')) { - /** - * @param $locale + * @param $locale */ function setCarbonLocale($locale) { @@ -50,9 +46,8 @@ function setCarbonLocale($locale) } if (! function_exists('setLocaleReadingDirection')) { - /** - * @param $locale + * @param $locale */ function setLocaleReadingDirection($locale) { @@ -71,9 +66,8 @@ function setLocaleReadingDirection($locale) } if (! function_exists('getLocaleName')) { - /** - * @param $locale + * @param $locale * @return mixed */ function getLocaleName($locale) diff --git a/app/Helpers/Global/SystemHelper.php b/app/Helpers/Global/SystemHelper.php index c78ca3fb18..60ac65e18e 100644 --- a/app/Helpers/Global/SystemHelper.php +++ b/app/Helpers/Global/SystemHelper.php @@ -5,7 +5,7 @@ * Loops through a folder and requires all PHP files * Searches sub-directories as well. * - * @param $folder + * @param $folder */ function includeFilesInFolder($folder) { @@ -27,9 +27,8 @@ function includeFilesInFolder($folder) } if (! function_exists('includeRouteFiles')) { - /** - * @param $folder + * @param $folder */ function includeRouteFiles($folder) { diff --git a/app/Http/Controllers/LocaleController.php b/app/Http/Controllers/LocaleController.php index dbf1711338..8a2b5c6c3f 100644 --- a/app/Http/Controllers/LocaleController.php +++ b/app/Http/Controllers/LocaleController.php @@ -8,7 +8,7 @@ class LocaleController { /** - * @param $locale + * @param $locale * @return \Illuminate\Http\RedirectResponse */ public function change($locale) diff --git a/app/Models/Traits/Uuid.php b/app/Models/Traits/Uuid.php index 637f73c3da..4cd5a966e3 100644 --- a/app/Models/Traits/Uuid.php +++ b/app/Models/Traits/Uuid.php @@ -10,8 +10,8 @@ trait Uuid { /** - * @param $query - * @param $uuid + * @param $query + * @param $uuid * @return mixed */ public function scopeUuid($query, $uuid) diff --git a/app/Services/BaseService.php b/app/Services/BaseService.php index 117318b736..cd52583adb 100644 --- a/app/Services/BaseService.php +++ b/app/Services/BaseService.php @@ -142,7 +142,7 @@ public function get() /** * Get the specified model record from the database. * - * @param $id + * @param $id * @return \Illuminate\Database\Eloquent\Model */ public function getById($id) @@ -155,8 +155,8 @@ public function getById($id) } /** - * @param $item - * @param $column + * @param $item + * @param $column * @param array $columns * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null */ @@ -172,7 +172,7 @@ public function getByColumn($item, $column, array $columns = ['*']) /** * Delete the specified model record from the database. * - * @param $id + * @param $id * @return bool|null * * @throws \Exception @@ -263,7 +263,7 @@ public function whereIn($column, $values) /** * Set Eloquent relationships to eager load. * - * @param $relations + * @param $relations * @return $this */ public function with($relations) diff --git a/database/migrations/2020_02_25_034148_create_permission_tables.php b/database/migrations/2020_02_25_034148_create_permission_tables.php index f4fcf646b6..597b964757 100644 --- a/database/migrations/2020_02_25_034148_create_permission_tables.php +++ b/database/migrations/2020_02_25_034148_create_permission_tables.php @@ -54,7 +54,7 @@ public function up() ->onDelete('cascade'); $table->primary(['permission_id', $columnNames['model_morph_key'], 'model_type'], - 'model_has_permissions_permission_model_type_primary'); + 'model_has_permissions_permission_model_type_primary'); }); Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) { @@ -70,7 +70,7 @@ public function up() ->onDelete('cascade'); $table->primary(['role_id', $columnNames['model_morph_key'], 'model_type'], - 'model_has_roles_role_model_type_primary'); + 'model_has_roles_role_model_type_primary'); }); Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { diff --git a/database/seeders/Traits/TruncateTable.php b/database/seeders/Traits/TruncateTable.php index 80900fcb0e..7a1c622e19 100644 --- a/database/seeders/Traits/TruncateTable.php +++ b/database/seeders/Traits/TruncateTable.php @@ -10,7 +10,7 @@ trait TruncateTable { /** - * @param $table + * @param $table * @return bool */ protected function truncate($table) @@ -23,7 +23,7 @@ protected function truncate($table) return DB::statement('TRUNCATE TABLE '.$table.' RESTART IDENTITY CASCADE'); case 'sqlite': case 'sqlsrv': - return DB::statement('DELETE FROM '.$table); + return DB::statement('DELETE FROM '.$table); } return false;