Massive PHPCS linting

This commit is contained in:
Dane Everitt 2017-08-21 22:10:48 -05:00
parent 78c8b8d8ea
commit 3ee5803416
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
346 changed files with 834 additions and 1424 deletions

View file

@ -97,8 +97,8 @@ class BuildModificationService
/**
* Set build array parameters.
*
* @param string $key
* @param mixed $value
* @param string $key
* @param mixed $value
*/
public function setBuild($key, $value)
{
@ -108,7 +108,7 @@ class BuildModificationService
/**
* Return the build array or an item out of the build array.
*
* @param string|null $attribute
* @param string|null $attribute
* @return array|mixed|null
*/
public function getBuild($attribute = null)
@ -123,8 +123,8 @@ class BuildModificationService
/**
* Change the build details for a specified server.
*
* @param int|\Pterodactyl\Models\Server $server
* @param array $data
* @param int|\Pterodactyl\Models\Server $server
* @param array $data
*
* @throws \Pterodactyl\Exceptions\DisplayException
* @throws \Pterodactyl\Exceptions\Model\DataValidationException

View file

@ -129,7 +129,7 @@ class CreationService
/**
* Create a server on both the panel and daemon.
*
* @param array $data
* @param array $data
* @return mixed
*
* @throws \Pterodactyl\Exceptions\DisplayException

View file

@ -100,7 +100,7 @@ class DeletionService
/**
* Set if the server should be forcibly deleted from the panel (ignoring daemon errors) or not.
*
* @param bool $bool
* @param bool $bool
* @return $this
*/
public function withForce($bool = true)

View file

@ -135,8 +135,8 @@ class DetailsModificationService
/**
* Update the docker container for a specified server.
*
* @param int|\Pterodactyl\Models\Server $server
* @param string $image
* @param int|\Pterodactyl\Models\Server $server
* @param string $image
*
* @throws \Pterodactyl\Exceptions\DisplayException
* @throws \Pterodactyl\Exceptions\Model\DataValidationException

View file

@ -59,8 +59,8 @@ class EnvironmentService
* Dynamically configure additional environment variables to be assigned
* with a specific server.
*
* @param string $key
* @param callable $closure
* @param string $key
* @param callable $closure
* @return $this
*/
public function setEnvironmentKey($key, callable $closure)
@ -74,7 +74,7 @@ class EnvironmentService
* Take all of the environment variables configured for this server and return
* them in an easy to process format.
*
* @param int|\Pterodactyl\Models\Server $server
* @param int|\Pterodactyl\Models\Server $server
* @return array
*/
public function process($server)

View file

@ -75,7 +75,7 @@ class ReinstallService
}
/**
* @param int|\Pterodactyl\Models\Server $server
* @param int|\Pterodactyl\Models\Server $server
*
* @throws \Pterodactyl\Exceptions\DisplayException
* @throws \Pterodactyl\Exceptions\Model\DataValidationException

View file

@ -107,7 +107,7 @@ class StartupModificationService
/**
* Determine if this function should run at an administrative level.
*
* @param bool $bool
* @param bool $bool
* @return $this
*/
public function isAdmin($bool = true)
@ -120,8 +120,8 @@ class StartupModificationService
/**
* Process startup modification for a server.
*
* @param int|\Pterodactyl\Models\Server $server
* @param array $data
* @param int|\Pterodactyl\Models\Server $server
* @param array $data
*
* @throws \Pterodactyl\Exceptions\DisplayException
* @throws \Pterodactyl\Exceptions\Model\DataValidationException

View file

@ -77,8 +77,8 @@ class SuspensionService
/**
* Suspends a server on the system.
*
* @param int|\Pterodactyl\Models\Server $server
* @param string $action
* @param int|\Pterodactyl\Models\Server $server
* @param string $action
* @return bool
*
* @throws \Pterodactyl\Exceptions\DisplayException
@ -93,7 +93,8 @@ class SuspensionService
if (! in_array($action, ['suspend', 'unsuspend'])) {
throw new \InvalidArgumentException(sprintf(
'Action must be either suspend or unsuspend, %s passed.', $action
'Action must be either suspend or unsuspend, %s passed.',
$action
));
}

View file

@ -30,8 +30,8 @@ class UsernameGenerationService
* Generate a unique username to be used for SFTP connections and identification
* of the server docker container on the host system.
*
* @param string $name
* @param null $identifier
* @param string $name
* @param null $identifier
* @return string
*/
public function generate($name, $identifier = null)

View file

@ -90,7 +90,7 @@ class VariableValidatorService
/**
* Set the fields with populated data to validate.
*
* @param array $fields
* @param array $fields
* @return $this
*/
public function setFields(array $fields)
@ -103,7 +103,7 @@ class VariableValidatorService
/**
* Set this function to be running at the administrative level.
*
* @param bool $bool
* @param bool $bool
* @return $this
*/
public function isAdmin($bool = true)
@ -116,7 +116,7 @@ class VariableValidatorService
/**
* Validate all of the passed data aganist the given service option variables.
*
* @param int $option
* @param int $option
* @return $this
*/
public function validate($option)