Use more standardized phpcs
This commit is contained in:
parent
a043071e3c
commit
c449ca5155
493 changed files with 1116 additions and 3903 deletions
|
@ -11,7 +11,6 @@ class DaemonConfigurationRepository extends DaemonRepository
|
|||
/**
|
||||
* Returns system information from the wings instance.
|
||||
*
|
||||
* @return array
|
||||
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
|
||||
*/
|
||||
public function getSystemInformation(): array
|
||||
|
@ -30,15 +29,16 @@ class DaemonConfigurationRepository extends DaemonRepository
|
|||
* this instance using a passed-in model. This allows us to change plenty of information
|
||||
* in the model, and still use the old, pre-update model to actually make the HTTP request.
|
||||
*
|
||||
* @param \Pterodactyl\Models\Node $node
|
||||
* @return \Psr\Http\Message\ResponseInterface
|
||||
*
|
||||
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
|
||||
*/
|
||||
public function update(Node $node)
|
||||
{
|
||||
try {
|
||||
return $this->getHttpClient()->post(
|
||||
'/api/update', ['json' => $node->getConfiguration()]
|
||||
'/api/update',
|
||||
['json' => $node->getConfiguration()]
|
||||
);
|
||||
} catch (TransferException $exception) {
|
||||
throw new DaemonConnectionException($exception);
|
||||
|
|
Reference in a new issue