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

@ -21,9 +21,6 @@ class NestCreationService
/**
* NestCreationService constructor.
*
* @param \Illuminate\Contracts\Config\Repository $config
* @param \Pterodactyl\Contracts\Repository\NestRepositoryInterface $repository
*/
public function __construct(ConfigRepository $config, NestRepositoryInterface $repository)
{
@ -34,9 +31,6 @@ class NestCreationService
/**
* Create a new nest on the system.
*
* @param array $data
* @param string|null $author
* @return \Pterodactyl\Models\Nest
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
*/
public function handle(array $data, string $author = null): Nest

View file

@ -27,9 +27,6 @@ class NestDeletionService
/**
* NestDeletionService constructor.
*
* @param \Pterodactyl\Contracts\Repository\ServerRepositoryInterface $serverRepository
* @param \Pterodactyl\Contracts\Repository\NestRepositoryInterface $repository
*/
public function __construct(
ServerRepositoryInterface $serverRepository,
@ -42,9 +39,6 @@ class NestDeletionService
/**
* Delete a nest from the system only if there are no servers attached to it.
*
* @param int $nest
* @return int
*
* @throws \Pterodactyl\Exceptions\Service\HasActiveServersException
*/
public function handle(int $nest): int

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']);
}