Skip to content

Commit

Permalink
Merge pull request #1646 from rappasoft/analysis-16LvL5
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
rappasoft committed Mar 27, 2024
2 parents 1e88a4d + 1339ed3 commit 2cee097
Show file tree
Hide file tree
Showing 37 changed files with 80 additions and 87 deletions.
Expand Up @@ -8,7 +8,7 @@
trait AnnouncementScope
{
/**
* @param $query
* @param $query
* @return mixed
*/
public function scopeEnabled($query)
Expand All @@ -17,8 +17,8 @@ public function scopeEnabled($query)
}

/**
* @param $query
* @param $area
* @param $query
* @param $area
* @return mixed
*/
public function scopeForArea($query, $area)
Expand All @@ -30,7 +30,7 @@ public function scopeForArea($query, $area)
}

/**
* @param $query
* @param $query
* @return mixed
*/
public function scopeInTimeFrame($query)
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/Role/RoleCreated.php
Expand Up @@ -18,7 +18,7 @@ class RoleCreated
public $role;

/**
* @param $role
* @param $role
*/
public function __construct(Role $role)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/Role/RoleDeleted.php
Expand Up @@ -18,7 +18,7 @@ class RoleDeleted
public $role;

/**
* @param $role
* @param $role
*/
public function __construct(Role $role)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/Role/RoleUpdated.php
Expand Up @@ -18,7 +18,7 @@ class RoleUpdated
public $role;

/**
* @param $role
* @param $role
*/
public function __construct(Role $role)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserCreated.php
Expand Up @@ -18,7 +18,7 @@ class UserCreated
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserDeleted.php
Expand Up @@ -18,7 +18,7 @@ class UserDeleted
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserDestroyed.php
Expand Up @@ -18,7 +18,7 @@ class UserDestroyed
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserLoggedIn.php
Expand Up @@ -18,7 +18,7 @@ class UserLoggedIn
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserRestored.php
Expand Up @@ -18,7 +18,7 @@ class UserRestored
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserStatusChanged.php
Expand Up @@ -26,7 +26,7 @@ class UserStatusChanged
* UserStatusChanged constructor.
*
* @param User $user
* @param $status
* @param $status
*/
public function __construct(User $user, $status)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Events/User/UserUpdated.php
Expand Up @@ -18,7 +18,7 @@ class UserUpdated
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
Expand Up @@ -37,7 +37,7 @@ public function index()
/**
* @param Request $request
* @param User $user
* @param $status
* @param $status
* @return mixed
*
* @throws \App\Exceptions\GeneralException
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -12,7 +12,7 @@
class SocialController
{
/**
* @param $provider
* @param $provider
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function redirect($provider)
Expand All @@ -21,7 +21,7 @@ public function redirect($provider)
}

/**
* @param $provider
* @param $provider
* @param UserService $userService
* @return \Illuminate\Http\RedirectResponse
*
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Http/Middleware/AdminCheck.php
Expand Up @@ -11,7 +11,7 @@
class AdminCheck
{
/**
* @param $request
* @param $request
* @param Closure $next
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Http/Middleware/PasswordExpires.php
Expand Up @@ -11,7 +11,7 @@
class PasswordExpires
{
/**
* @param $request
* @param $request
* @param Closure $next
* @return \Illuminate\Http\RedirectResponse|mixed
*
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Http/Middleware/SuperAdminCheck.php
Expand Up @@ -10,7 +10,7 @@
class SuperAdminCheck
{
/**
* @param $request
* @param $request
* @param Closure $next
* @return mixed
*/
Expand Down
Expand Up @@ -10,7 +10,7 @@
class TwoFactorAuthenticationStatus
{
/**
* @param $request
* @param $request
* @param Closure $next
* @param string $status
* @return mixed
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Http/Middleware/UserCheck.php
Expand Up @@ -11,7 +11,7 @@
class UserCheck
{
/**
* @param $request
* @param $request
* @param Closure $next
* @return mixed
*/
Expand Down
4 changes: 2 additions & 2 deletions app/Domains/Auth/Http/Middleware/UserTypeCheck.php
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions app/Domains/Auth/Listeners/RoleEventListener.php
Expand Up @@ -12,7 +12,7 @@
class RoleEventListener
{
/**
* @param $event
* @param $event
*/
public function onCreated($event)
{
Expand All @@ -29,7 +29,7 @@ public function onCreated($event)
}

/**
* @param $event
* @param $event
*/
public function onUpdated($event)
{
Expand All @@ -46,7 +46,7 @@ public function onUpdated($event)
}

/**
* @param $event
* @param $event
*/
public function onDeleted($event)
{
Expand Down
16 changes: 8 additions & 8 deletions app/Domains/Auth/Listeners/UserEventListener.php
Expand Up @@ -17,7 +17,7 @@
class UserEventListener
{
/**
* @param $event
* @param $event
*/
public function onLoggedIn($event)
{
Expand All @@ -29,7 +29,7 @@ public function onLoggedIn($event)
}

/**
* @param $event
* @param $event
*/
public function onPasswordReset($event)
{
Expand All @@ -39,7 +39,7 @@ public function onPasswordReset($event)
}

/**
* @param $event
* @param $event
*/
public function onCreated($event)
{
Expand All @@ -60,7 +60,7 @@ public function onCreated($event)
}

/**
* @param $event
* @param $event
*/
public function onUpdated($event)
{
Expand All @@ -79,7 +79,7 @@ public function onUpdated($event)
}

/**
* @param $event
* @param $event
*/
public function onDeleted($event)
{
Expand All @@ -89,7 +89,7 @@ public function onDeleted($event)
}

/**
* @param $event
* @param $event
*/
public function onRestored($event)
{
Expand All @@ -99,7 +99,7 @@ public function onRestored($event)
}

/**
* @param $event
* @param $event
*/
public function onDestroyed($event)
{
Expand All @@ -109,7 +109,7 @@ public function onDestroyed($event)
}

/**
* @param $event
* @param $event
*/
public function onStatusChanged($event)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Models/Traits/Attribute/UserAttribute.php
Expand Up @@ -10,7 +10,7 @@
trait UserAttribute
{
/**
* @param $password
* @param $password
*/
public function setPasswordAttribute($password): void
{
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Models/Traits/Method/UserMethod.php
Expand Up @@ -42,7 +42,7 @@ public function hasAllAccess(): bool
}

/**
* @param $type
* @param $type
* @return bool
*/
public function isType($type): bool
Expand Down
8 changes: 4 additions & 4 deletions app/Domains/Auth/Models/Traits/Scope/PermissionScope.php
Expand Up @@ -8,7 +8,7 @@
trait PermissionScope
{
/**
* @param $query
* @param $query
* @return mixed
*/
public function scopeIsMaster($query)
Expand All @@ -18,7 +18,7 @@ public function scopeIsMaster($query)
}

/**
* @param $query
* @param $query
* @return mixed
*/
public function scopeIsParent($query)
Expand All @@ -27,7 +27,7 @@ public function scopeIsParent($query)
}

/**
* @param $query
* @param $query
* @return mixed
*/
public function scopeIsChild($query)
Expand All @@ -36,7 +36,7 @@ public function scopeIsChild($query)
}

/**
* @param $query
* @param $query
* @return mixed
*/
public function scopeSingular($query)
Expand Down
4 changes: 2 additions & 2 deletions app/Domains/Auth/Models/Traits/Scope/RoleScope.php
Expand Up @@ -8,8 +8,8 @@
trait RoleScope
{
/**
* @param $query
* @param $term
* @param $query
* @param $term
* @return mixed
*/
public function scopeSearch($query, $term)
Expand Down

0 comments on commit 2cee097

Please sign in to comment.