@@ -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 | /** |
@@ -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 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | public function makeRequest(string $verb, string $path, array $query = [], array $options = array()) |
74 | 74 | { |
75 | 75 | try { |
76 | - $response = $this->client->$verb(self::BASE_URI . $path, $options); |
|
76 | + $response = $this->client->$verb(self::BASE_URI.$path, $options); |
|
77 | 77 | } catch (ClientException $e) { |
78 | 78 | print $e->getMessage(); |
79 | 79 | $response = $e->getResponse(); |