diff --git a/src/CloudApi/Client.php b/src/CloudApi/Client.php index 97618ac7..941bb85b 100644 --- a/src/CloudApi/Client.php +++ b/src/CloudApi/Client.php @@ -290,13 +290,13 @@ public function databaseBackups($environmentUuid, $dbName) */ public function databaseBackup($environmentUuid, $backupId) { - return new BackupResponse( - $this->connector->request( - 'get', - "/environments/${environmentUuid}/database-backups/${backupId}", - $this->query - ) - ); + return new BackupResponse( + $this->connector->request( + 'get', + "/environments/${environmentUuid}/database-backups/${backupId}", + $this->query + ) + ); } /** @@ -327,9 +327,9 @@ public function restoreDatabaseBackup($environmentUuid, $backupId) public function copyFiles($environmentUuidFrom, $environmentUuidTo) { $options = [ - 'form_params' => [ - 'source' => $environmentUuidFrom, - ], + 'form_params' => [ + 'source' => $environmentUuidFrom, + ], ]; return new OperationResponse( @@ -869,15 +869,15 @@ public function teams() */ public function renameTeam($teamUuid, $name) { - $options = [ - 'form_params' => [ - 'name' => $name, - ], - ]; - - return new OperationResponse( - $this->connector->request('put', "/teams/${teamUuid}", $options) - ); + $options = [ + 'form_params' => [ + 'name' => $name, + ], + ]; + + return new OperationResponse( + $this->connector->request('put', "/teams/${teamUuid}", $options) + ); } /** diff --git a/src/CloudApi/Connector.php b/src/CloudApi/Connector.php index b5949df1..33269678 100644 --- a/src/CloudApi/Connector.php +++ b/src/CloudApi/Connector.php @@ -98,7 +98,7 @@ public function processResponse(ResponseInterface $response) if (property_exists($object, '_embedded') && property_exists($object->_embedded, 'items')) { $return = $object->_embedded->items; } elseif (property_exists($object, 'error')) { - throw new \Exception($object->message); + throw new \Exception($object->message); } else { $return = $object; } diff --git a/src/Response/EnvironmentsResponse.php b/src/Response/EnvironmentsResponse.php index 2bed285c..9cf0375a 100644 --- a/src/Response/EnvironmentsResponse.php +++ b/src/Response/EnvironmentsResponse.php @@ -10,9 +10,9 @@ class EnvironmentsResponse extends \ArrayObject { /** - * EnvironmentsResponse constructor. - * @param array $environments - */ + * EnvironmentsResponse constructor. + * @param array $environments + */ public function __construct($environments) { parent::__construct(array_map(function ($environment) { diff --git a/src/Response/InvitationsResponse.php b/src/Response/InvitationsResponse.php index 42312691..975d5357 100644 --- a/src/Response/InvitationsResponse.php +++ b/src/Response/InvitationsResponse.php @@ -10,9 +10,9 @@ class InvitationsResponse extends \ArrayObject { /** - * MembersResponse constructor. - * @param array $invitations - */ + * MembersResponse constructor. + * @param array $invitations + */ public function __construct($invitations) { parent::__construct(array_map(function ($invitation) { diff --git a/src/Response/MembersResponse.php b/src/Response/MembersResponse.php index 49b5f6be..6fa1881d 100644 --- a/src/Response/MembersResponse.php +++ b/src/Response/MembersResponse.php @@ -10,9 +10,9 @@ class MembersResponse extends \ArrayObject { /** - * MembersResponse constructor. - * @param array $members - */ + * MembersResponse constructor. + * @param array $members + */ public function __construct($members) { parent::__construct(array_map(function ($member) { diff --git a/src/Response/PermissionsResponse.php b/src/Response/PermissionsResponse.php index c657b6ca..0e964eee 100644 --- a/src/Response/PermissionsResponse.php +++ b/src/Response/PermissionsResponse.php @@ -10,9 +10,9 @@ class PermissionsResponse extends \ArrayObject { /** - * PermissionsResponse constructor. - * @param array $permissions - */ + * PermissionsResponse constructor. + * @param array $permissions + */ public function __construct($permissions) { parent::__construct(array_map(function ($permission) { diff --git a/src/Response/RolesResponse.php b/src/Response/RolesResponse.php index b10638b8..7138e846 100644 --- a/src/Response/RolesResponse.php +++ b/src/Response/RolesResponse.php @@ -10,9 +10,9 @@ class RolesResponse extends \ArrayObject { /** - * RolesResponse constructor. - * @param array $roles - */ + * RolesResponse constructor. + * @param array $roles + */ public function __construct($roles) { parent::__construct(array_map(function ($role) { diff --git a/src/Response/ServerResponse.php b/src/Response/ServerResponse.php index f34d3bbb..021e06a1 100644 --- a/src/Response/ServerResponse.php +++ b/src/Response/ServerResponse.php @@ -26,15 +26,15 @@ class ServerResponse */ public function __construct($server) { - $this->id = $server->id; - $this->name = $server->name; - $this->hostname = $server->hostname; - $this->ip = $server->ip; - $this->status = $server->status; - $this->region = $server->region; - $this->roles = $server->roles; - $this->amiType = $server->ami_type; - $this->configuration = $server->configuration; - $this->flags = $server->flags; + $this->id = $server->id; + $this->name = $server->name; + $this->hostname = $server->hostname; + $this->ip = $server->ip; + $this->status = $server->status; + $this->region = $server->region; + $this->roles = $server->roles; + $this->amiType = $server->ami_type; + $this->configuration = $server->configuration; + $this->flags = $server->flags; } } diff --git a/src/Response/TeamsResponse.php b/src/Response/TeamsResponse.php index 0bb2ae1e..603ce418 100644 --- a/src/Response/TeamsResponse.php +++ b/src/Response/TeamsResponse.php @@ -10,9 +10,9 @@ class TeamsResponse extends \ArrayObject { /** - * TeamsResponse constructor. - * @param array $teams - */ + * TeamsResponse constructor. + * @param array $teams + */ public function __construct($teams) { parent::__construct(array_map(function ($team) {