Skip to content

Commit

Permalink
Merge pull request #1681 from rappasoft/analysis-9bpydm
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
rappasoft authored Nov 6, 2024
2 parents 9335c5e + a9d05a5 commit ae451e2
Show file tree
Hide file tree
Showing 37 changed files with 80 additions and 87 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class UserUpdated
public $user;

/**
* @param $user
* @param $user
*/
public function __construct(User $user)
{
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class SuperAdminCheck
{
/**
* @param $request
* @param $request
* @param Closure $next
* @return mixed
*/
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit ae451e2

Please sign in to comment.