@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * MembersResponse constructor. |
|
| 14 | - * @param array $members |
|
| 15 | - */ |
|
| 13 | + * MembersResponse constructor. |
|
| 14 | + * @param array $members |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct($members) |
| 17 | 17 | { |
| 18 | 18 | parent::__construct(array_map(function ($member) { |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * PermissionsResponse constructor. |
|
| 14 | - * @param array $permissions |
|
| 15 | - */ |
|
| 13 | + * PermissionsResponse constructor. |
|
| 14 | + * @param array $permissions |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct($permissions) |
| 17 | 17 | { |
| 18 | 18 | parent::__construct(array_map(function ($permission) { |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * TeamsResponse constructor. |
|
| 14 | - * @param array $teams |
|
| 15 | - */ |
|
| 13 | + * TeamsResponse constructor. |
|
| 14 | + * @param array $teams |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct($teams) |
| 17 | 17 | { |
| 18 | 18 | parent::__construct(array_map(function ($team) { |
@@ -26,15 +26,15 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function __construct($server) |
| 28 | 28 | { |
| 29 | - $this->id = $server->id; |
|
| 30 | - $this->name = $server->name; |
|
| 31 | - $this->hostname = $server->hostname; |
|
| 32 | - $this->ip = $server->ip; |
|
| 33 | - $this->status = $server->status; |
|
| 34 | - $this->region = $server->region; |
|
| 35 | - $this->roles = $server->roles; |
|
| 36 | - $this->amiType = $server->ami_type; |
|
| 37 | - $this->configuration = $server->configuration; |
|
| 38 | - $this->flags = $server->flags; |
|
| 29 | + $this->id = $server->id; |
|
| 30 | + $this->name = $server->name; |
|
| 31 | + $this->hostname = $server->hostname; |
|
| 32 | + $this->ip = $server->ip; |
|
| 33 | + $this->status = $server->status; |
|
| 34 | + $this->region = $server->region; |
|
| 35 | + $this->roles = $server->roles; |
|
| 36 | + $this->amiType = $server->ami_type; |
|
| 37 | + $this->configuration = $server->configuration; |
|
| 38 | + $this->flags = $server->flags; |
|
| 39 | 39 | } |
| 40 | 40 | } |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * EnvironmentsResponse constructor. |
|
| 14 | - * @param array $environments |
|
| 15 | - */ |
|
| 13 | + * EnvironmentsResponse constructor. |
|
| 14 | + * @param array $environments |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct($environments) |
| 17 | 17 | { |
| 18 | 18 | parent::__construct(array_map(function ($environment) { |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * OrganizationsResponse constructor. |
|
| 14 | - * @param array $organizations |
|
| 15 | - */ |
|
| 13 | + * OrganizationsResponse constructor. |
|
| 14 | + * @param array $organizations |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct($organizations) |
| 17 | 17 | { |
| 18 | 18 | parent::__construct(array_map(function ($organization) { |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * RolesResponse constructor. |
|
| 14 | - * @param array $roles |
|
| 15 | - */ |
|
| 13 | + * RolesResponse constructor. |
|
| 14 | + * @param array $roles |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct($roles) |
| 17 | 17 | { |
| 18 | 18 | parent::__construct(array_map(function ($role) { |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | if (property_exists($object, '_embedded') && property_exists($object->_embedded, 'items')) { |
| 99 | 99 | $return = $object->_embedded->items; |
| 100 | 100 | } elseif (property_exists($object, 'error')) { |
| 101 | - throw new \Exception($object->message); |
|
| 101 | + throw new \Exception($object->message); |
|
| 102 | 102 | } else { |
| 103 | 103 | $return = $object; |
| 104 | 104 | } |
@@ -290,13 +290,13 @@ discard block |
||
| 290 | 290 | */ |
| 291 | 291 | public function databaseBackup($environmentUuid, $backupId) |
| 292 | 292 | { |
| 293 | - return new BackupResponse( |
|
| 294 | - $this->connector->request( |
|
| 295 | - 'get', |
|
| 296 | - "/environments/${environmentUuid}/database-backups/${backupId}", |
|
| 297 | - $this->query |
|
| 298 | - ) |
|
| 299 | - ); |
|
| 293 | + return new BackupResponse( |
|
| 294 | + $this->connector->request( |
|
| 295 | + 'get', |
|
| 296 | + "/environments/${environmentUuid}/database-backups/${backupId}", |
|
| 297 | + $this->query |
|
| 298 | + ) |
|
| 299 | + ); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
@@ -327,9 +327,9 @@ discard block |
||
| 327 | 327 | public function copyFiles($environmentUuidFrom, $environmentUuidTo) |
| 328 | 328 | { |
| 329 | 329 | $options = [ |
| 330 | - 'form_params' => [ |
|
| 331 | - 'source' => $environmentUuidFrom, |
|
| 332 | - ], |
|
| 330 | + 'form_params' => [ |
|
| 331 | + 'source' => $environmentUuidFrom, |
|
| 332 | + ], |
|
| 333 | 333 | ]; |
| 334 | 334 | |
| 335 | 335 | return new OperationResponse( |
@@ -869,15 +869,15 @@ discard block |
||
| 869 | 869 | */ |
| 870 | 870 | public function renameTeam($teamUuid, $name) |
| 871 | 871 | { |
| 872 | - $options = [ |
|
| 872 | + $options = [ |
|
| 873 | 873 | 'form_params' => [ |
| 874 | - 'name' => $name, |
|
| 875 | - ], |
|
| 874 | + 'name' => $name, |
|
| 875 | + ], |
|
| 876 | 876 | ]; |
| 877 | 877 | |
| 878 | - return new OperationResponse( |
|
| 879 | - $this->connector->request('put', "/teams/${teamUuid}", $options) |
|
| 880 | - ); |
|
| 878 | + return new OperationResponse( |
|
| 879 | + $this->connector->request('put', "/teams/${teamUuid}", $options) |
|
| 880 | + ); |
|
| 881 | 881 | } |
| 882 | 882 | |
| 883 | 883 | /** |