@@ -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($invitations) |
17 | 17 | { |
18 | 18 | parent::__construct(array_map(function ($invitation) { |
@@ -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) { |
@@ -35,20 +35,20 @@ discard block |
||
35 | 35 | |
36 | 36 | protected $query = []; |
37 | 37 | |
38 | - /** |
|
39 | - * Client constructor. |
|
40 | - * @param ConnectorInterface $connector |
|
41 | - */ |
|
38 | + /** |
|
39 | + * Client constructor. |
|
40 | + * @param ConnectorInterface $connector |
|
41 | + */ |
|
42 | 42 | public function __construct(ConnectorInterface $connector) |
43 | 43 | { |
44 | 44 | $this->connector = $connector; |
45 | 45 | } |
46 | 46 | |
47 | - /** |
|
48 | - * @param ConnectorInterface $connector |
|
49 | - * |
|
50 | - * @return static |
|
51 | - */ |
|
47 | + /** |
|
48 | + * @param ConnectorInterface $connector |
|
49 | + * |
|
50 | + * @return static |
|
51 | + */ |
|
52 | 52 | public static function factory(ConnectorInterface $connector) |
53 | 53 | { |
54 | 54 | $client = new static( |
@@ -251,18 +251,18 @@ discard block |
||
251 | 251 | */ |
252 | 252 | public function databaseBackup($id, $backupId) |
253 | 253 | { |
254 | - return new BackupResponse( |
|
255 | - $this->connector->request('get', "/environments/${id}/database-backups/${backupId}", $this->query) |
|
256 | - ); |
|
254 | + return new BackupResponse( |
|
255 | + $this->connector->request('get', "/environments/${id}/database-backups/${backupId}", $this->query) |
|
256 | + ); |
|
257 | 257 | } |
258 | 258 | |
259 | - /** |
|
260 | - * Restores a database backup to a database in an environment. |
|
261 | - * |
|
262 | - * @param string $id |
|
263 | - * @param string $backupId |
|
264 | - * @return OperationResponse |
|
265 | - */ |
|
259 | + /** |
|
260 | + * Restores a database backup to a database in an environment. |
|
261 | + * |
|
262 | + * @param string $id |
|
263 | + * @param string $backupId |
|
264 | + * @return OperationResponse |
|
265 | + */ |
|
266 | 266 | public function restoreDatabaseBackup($id, $backupId) |
267 | 267 | { |
268 | 268 | return new OperationResponse( |
@@ -284,9 +284,9 @@ discard block |
||
284 | 284 | public function copyFiles($idFrom, $idTo) |
285 | 285 | { |
286 | 286 | $options = [ |
287 | - 'form_params' => [ |
|
288 | - 'source' => $idFrom, |
|
289 | - ], |
|
287 | + 'form_params' => [ |
|
288 | + 'source' => $idFrom, |
|
289 | + ], |
|
290 | 290 | ]; |
291 | 291 | |
292 | 292 | return new OperationResponse( |
@@ -765,15 +765,15 @@ discard block |
||
765 | 765 | */ |
766 | 766 | public function renameTeam($teamUuid, $name) |
767 | 767 | { |
768 | - $options = [ |
|
768 | + $options = [ |
|
769 | 769 | 'form_params' => [ |
770 | - 'name' => $name, |
|
771 | - ], |
|
770 | + 'name' => $name, |
|
771 | + ], |
|
772 | 772 | ]; |
773 | 773 | |
774 | - return new OperationResponse( |
|
775 | - $this->connector->request('put', "/teams/${teamUuid}", $options) |
|
776 | - ); |
|
774 | + return new OperationResponse( |
|
775 | + $this->connector->request('put', "/teams/${teamUuid}", $options) |
|
776 | + ); |
|
777 | 777 | } |
778 | 778 | |
779 | 779 | /** |