@@ -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 | } |
@@ -201,10 +201,10 @@ discard block |
||
| 201 | 201 | public function enableEmail(string $environmentUuid): OperationResponse |
| 202 | 202 | { |
| 203 | 203 | return new OperationResponse( |
| 204 | - $this->client->request( |
|
| 204 | + $this->client->request( |
|
| 205 | 205 | 'post', |
| 206 | 206 | "/environments/$environmentUuid/email/actions/enable" |
| 207 | - ) |
|
| 207 | + ) |
|
| 208 | 208 | ); |
| 209 | 209 | } |
| 210 | 210 | |
@@ -218,10 +218,10 @@ discard block |
||
| 218 | 218 | public function disableEmail(string $environmentUuid): OperationResponse |
| 219 | 219 | { |
| 220 | 220 | return new OperationResponse( |
| 221 | - $this->client->request( |
|
| 221 | + $this->client->request( |
|
| 222 | 222 | 'post', |
| 223 | 223 | "/environments/$environmentUuid/email/actions/disable" |
| 224 | - ) |
|
| 224 | + ) |
|
| 225 | 225 | ); |
| 226 | 226 | } |
| 227 | 227 | |