@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($applications) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($application) { |
|
18 | + parent::__construct(array_map(function($application) { |
|
19 | 19 | return new ApplicationResponse($application); |
20 | 20 | }, $applications), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -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) { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($roles) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($role) { |
|
18 | + parent::__construct(array_map(function($role) { |
|
19 | 19 | return new RoleResponse($role); |
20 | 20 | }, $roles), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($databases) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($database) { |
|
18 | + parent::__construct(array_map(function($database) { |
|
19 | 19 | return new DatabaseResponse($database); |
20 | 20 | }, $databases), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($backups) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($backup) { |
|
18 | + parent::__construct(array_map(function($backup) { |
|
19 | 19 | return new BackupResponse($backup); |
20 | 20 | }, $backups), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($crons) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($cron) { |
|
18 | + parent::__construct(array_map(function($cron) { |
|
19 | 19 | return new CronResponse($cron); |
20 | 20 | }, $crons), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($branches) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($branch) { |
|
18 | + parent::__construct(array_map(function($branch) { |
|
19 | 19 | return new BranchResponse($branch); |
20 | 20 | }, $branches), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($insights) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($insight) { |
|
18 | + parent::__construct(array_map(function($insight) { |
|
19 | 19 | return new InsightResponse($insight); |
20 | 20 | }, $insights), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -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 = []) |
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(); |
@@ -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 | /** |