@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | array_map( |
22 | - function ($organization) { |
|
22 | + function($organization) { |
|
23 | 23 | return new OrganizationResponse($organization); |
24 | 24 | }, |
25 | 25 | $organizations |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | array_map( |
22 | - function ($cron) { |
|
22 | + function($cron) { |
|
23 | 23 | return new CronResponse($cron); |
24 | 24 | }, |
25 | 25 | $crons |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | array_map( |
22 | - function ($server) { |
|
22 | + function($server) { |
|
23 | 23 | return new ServerResponse($server); |
24 | 24 | }, |
25 | 25 | $servers |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function __toString() |
43 | 43 | { |
44 | - return __CLASS__ . ": [{$this->errorType}]: {$this->message}\n"; |
|
44 | + return __CLASS__.": [{$this->errorType}]: {$this->message}\n"; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | if (is_array($response_body->message) || is_object($response_body->message)) { |
55 | 55 | $output = ''; |
56 | 56 | foreach ($response_body->message as $message) { |
57 | - $output .= $message . PHP_EOL; |
|
57 | + $output .= $message.PHP_EOL; |
|
58 | 58 | } |
59 | 59 | $this->message = $output; |
60 | 60 | } else { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | parent::__construct( |
18 | 18 | array_map( |
19 | - function ($sshkey) { |
|
19 | + function($sshkey) { |
|
20 | 20 | return new SshKeyResponse($sshkey); |
21 | 21 | }, |
22 | 22 | $sshkeys |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | parent::__construct( |
18 | 18 | array_map( |
19 | - function ($subscription) { |
|
19 | + function($subscription) { |
|
20 | 20 | return new SubscriptionResponse($subscription); |
21 | 21 | }, |
22 | 22 | $subscriptions |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $directory = sprintf('%s%s%s', Path::getHomeDirectory(), \DIRECTORY_SEPARATOR, '.acquia-php-sdk-v2'); |
80 | 80 | /** @infection-ignore-all */ |
81 | 81 | $cache = new FilesystemAdapter('cache', 300, $directory); |
82 | - $accessToken = $cache->get('cloudapi-token', function () { |
|
82 | + $accessToken = $cache->get('cloudapi-token', function() { |
|
83 | 83 | return $this->provider->getAccessToken('client_credentials'); |
84 | 84 | }); |
85 | 85 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | return $this->provider->getAuthenticatedRequest( |
90 | 90 | $verb, |
91 | - $this->baseUri . $path, |
|
91 | + $this->baseUri.$path, |
|
92 | 92 | $this->accessToken |
93 | 93 | ); |
94 | 94 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * |
39 | 39 | * @return OperationResponse |
40 | 40 | */ |
41 | - public function switch(string $environmentUuid, string $branch): OperationResponse |
|
41 | + public function switch (string $environmentUuid, string $branch): OperationResponse |
|
42 | 42 | { |
43 | 43 | |
44 | 44 | $options = [ |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | parent::__construct( |
18 | 18 | array_map( |
19 | - static function ($branch) { |
|
19 | + static function($branch) { |
|
20 | 20 | return new BranchResponse($branch); |
21 | 21 | }, |
22 | 22 | $branches |