@@ -168,13 +168,13 @@ |
||
| 168 | 168 | */ |
| 169 | 169 | public function databaseBackup($id, $backupId); |
| 170 | 170 | |
| 171 | - /** |
|
| 172 | - * Restores a database backup to a database in an environment. |
|
| 173 | - * |
|
| 174 | - * @param string $id |
|
| 175 | - * @param string $backupId |
|
| 176 | - * @return OperationResponse |
|
| 177 | - */ |
|
| 171 | + /** |
|
| 172 | + * Restores a database backup to a database in an environment. |
|
| 173 | + * |
|
| 174 | + * @param string $id |
|
| 175 | + * @param string $backupId |
|
| 176 | + * @return OperationResponse |
|
| 177 | + */ |
|
| 178 | 178 | public function restoreDatabaseBackup($id, $backupId); |
| 179 | 179 | |
| 180 | 180 | /** |
@@ -305,16 +305,16 @@ discard block |
||
| 305 | 305 | */ |
| 306 | 306 | public function databaseBackup($id, $backupId) |
| 307 | 307 | { |
| 308 | - return new BackupResponse($this->makeRequest('get', "/environments/${id}/database-backups/${backupId}")); |
|
| 308 | + return new BackupResponse($this->makeRequest('get', "/environments/${id}/database-backups/${backupId}")); |
|
| 309 | 309 | } |
| 310 | 310 | |
| 311 | - /** |
|
| 312 | - * Restores a database backup to a database in an environment. |
|
| 313 | - * |
|
| 314 | - * @param string $id |
|
| 315 | - * @param string $backupId |
|
| 316 | - * @return OperationResponse |
|
| 317 | - */ |
|
| 311 | + /** |
|
| 312 | + * Restores a database backup to a database in an environment. |
|
| 313 | + * |
|
| 314 | + * @param string $id |
|
| 315 | + * @param string $backupId |
|
| 316 | + * @return OperationResponse |
|
| 317 | + */ |
|
| 318 | 318 | public function restoreDatabaseBackup($id, $backupId) |
| 319 | 319 | { |
| 320 | 320 | return new OperationResponse( |
@@ -332,9 +332,9 @@ discard block |
||
| 332 | 332 | public function copyFiles($idFrom, $idTo) |
| 333 | 333 | { |
| 334 | 334 | $options = [ |
| 335 | - 'form_params' => [ |
|
| 336 | - 'source' => $idFrom, |
|
| 337 | - ], |
|
| 335 | + 'form_params' => [ |
|
| 336 | + 'source' => $idFrom, |
|
| 337 | + ], |
|
| 338 | 338 | ]; |
| 339 | 339 | |
| 340 | 340 | return new OperationResponse($this->makeRequest('post', "/environments/${idTo}/files", $options)); |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | try { |
| 87 | - $response = $this->$verb(self::BASE_URI . $path, $options); |
|
| 87 | + $response = $this->$verb(self::BASE_URI.$path, $options); |
|
| 88 | 88 | } catch (ClientException $e) { |
| 89 | 89 | print $e->getMessage(); |
| 90 | 90 | $response = $e->getResponse(); |
@@ -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) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($invitations) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($invitation) { |
|
| 18 | + parent::__construct(array_map(function($invitation) { |
|
| 19 | 19 | return new InvitationResponse($invitation); |
| 20 | 20 | }, $invitations), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |
@@ -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) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($members) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($member) { |
|
| 18 | + parent::__construct(array_map(function($member) { |
|
| 19 | 19 | return new MemberResponse($member); |
| 20 | 20 | }, $members), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($tasks) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($task) { |
|
| 18 | + parent::__construct(array_map(function($task) { |
|
| 19 | 19 | return new TaskResponse($task); |
| 20 | 20 | }, $tasks), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |
@@ -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) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($permissions) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($permission) { |
|
| 18 | + parent::__construct(array_map(function($permission) { |
|
| 19 | 19 | return new PermissionResponse($permission); |
| 20 | 20 | }, $permissions), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($domains) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($domain) { |
|
| 18 | + parent::__construct(array_map(function($domain) { |
|
| 19 | 19 | return new DomainResponse($domain); |
| 20 | 20 | }, $domains), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |
@@ -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) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($teams) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($team) { |
|
| 18 | + parent::__construct(array_map(function($team) { |
|
| 19 | 19 | return new TeamResponse($team); |
| 20 | 20 | }, $teams), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($servers) |
| 17 | 17 | { |
| 18 | - parent::__construct(array_map(function ($server) { |
|
| 18 | + parent::__construct(array_map(function($server) { |
|
| 19 | 19 | return new ServerResponse($server); |
| 20 | 20 | }, $servers), self::ARRAY_AS_PROPS); |
| 21 | 21 | } |