@@ -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 |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | parent::__construct( |
| 18 | 18 | array_map( |
| 19 | - static function ($application) { |
|
| 19 | + static function($application) { |
|
| 20 | 20 | return new ApplicationResponse($application); |
| 21 | 21 | }, |
| 22 | 22 | $applications |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | parent::__construct( |
| 18 | 18 | array_map( |
| 19 | - static function ($backup) { |
|
| 19 | + static function($backup) { |
|
| 20 | 20 | return new BackupResponse($backup); |
| 21 | 21 | }, |
| 22 | 22 | $backups |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $directory = Path::join(Path::getHomeDirectory(), '.acquia-php-sdk-v2'); |
| 98 | 98 | /** @infection-ignore-all */ |
| 99 | 99 | $cache = new FilesystemAdapter('cache', 300, $directory); |
| 100 | - $accessToken = $cache->get('cloudapi-token', function () { |
|
| 100 | + $accessToken = $cache->get('cloudapi-token', function() { |
|
| 101 | 101 | return $this->provider->getAccessToken('client_credentials'); |
| 102 | 102 | }); |
| 103 | 103 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | return $this->provider->getAuthenticatedRequest( |
| 108 | 108 | $verb, |
| 109 | - $this->getBaseUri() . $path, |
|
| 109 | + $this->getBaseUri().$path, |
|
| 110 | 110 | $this->accessToken |
| 111 | 111 | ); |
| 112 | 112 | } |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | /** |
| 187 | 187 | * @inheritdoc |
| 188 | 188 | */ |
| 189 | - public function addQuery(string $name, int|string $value): void |
|
| 189 | + public function addQuery(string $name, int | string $value): void |
|
| 190 | 190 | { |
| 191 | 191 | $this->query = array_merge_recursive($this->query, [$name => $value]); |
| 192 | 192 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function __toString(): string |
| 32 | 32 | { |
| 33 | - return __CLASS__ . ": [{$this->errorType}]: {$this->message}\n"; |
|
| 33 | + return __CLASS__.": [{$this->errorType}]: {$this->message}\n"; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | if (is_array($response_body->message) || is_object($response_body->message)) { |
| 43 | 43 | $output = ''; |
| 44 | 44 | foreach ($response_body->message as $message) { |
| 45 | - $output .= $message . PHP_EOL; |
|
| 45 | + $output .= $message.PHP_EOL; |
|
| 46 | 46 | } |
| 47 | 47 | $this->message = $output; |
| 48 | 48 | } else { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Deploys a code branch/tag to an environment. |
| 33 | 33 | */ |
| 34 | - public function switch(string $environmentUuid, string $branch): OperationResponse |
|
| 34 | + public function switch (string $environmentUuid, string $branch): OperationResponse |
|
| 35 | 35 | { |
| 36 | 36 | |
| 37 | 37 | $options = [ |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | parent::__construct( |
| 16 | 16 | array_map( |
| 17 | - static function ($tag) { |
|
| 17 | + static function($tag) { |
|
| 18 | 18 | return new TagResponse($tag); |
| 19 | 19 | }, |
| 20 | 20 | $tags |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | parent::__construct( |
| 16 | 16 | array_map( |
| 17 | - static function ($module) { |
|
| 17 | + static function($module) { |
|
| 18 | 18 | return new InsightModuleResponse($module); |
| 19 | 19 | }, |
| 20 | 20 | $modules |