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

@ -20,8 +20,6 @@ class NestUpdateService
/**
* NestUpdateService constructor.
*
* @param \Pterodactyl\Contracts\Repository\NestRepositoryInterface $repository
*/
public function __construct(NestRepositoryInterface $repository)
{
@ -31,14 +29,12 @@ class NestUpdateService
/**
* Update a nest and prevent changing the author once it is set.
*
* @param int $nest
* @param array $data
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function handle(int $nest, array $data)
{
if (! is_null(array_get($data, 'author'))) {
if (!is_null(array_get($data, 'author'))) {
unset($data['author']);
}