Use more standardized phpcs

This commit is contained in:
Dane Everitt 2021-01-23 12:33:34 -08:00
parent a043071e3c
commit c449ca5155
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
493 changed files with 1116 additions and 3903 deletions

View file

@ -23,9 +23,6 @@ class UserUpdateService
/**
* UpdateService constructor.
*
* @param \Illuminate\Contracts\Hashing\Hasher $hasher
* @param \Pterodactyl\Repositories\Eloquent\UserRepository $repository
*/
public function __construct(Hasher $hasher, UserRepository $repository)
{
@ -36,8 +33,6 @@ class UserUpdateService
/**
* Update the user model instance.
*
* @param \Pterodactyl\Models\User $user
* @param array $data
* @return \Pterodactyl\Models\User
*
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
@ -45,7 +40,7 @@ class UserUpdateService
*/
public function handle(User $user, array $data)
{
if (! empty(array_get($data, 'password'))) {
if (!empty(array_get($data, 'password'))) {
$data['password'] = $this->hasher->make($data['password']);
} else {
unset($data['password']);