@@ -21,7 +21,7 @@ |
||
21 | 21 | $response = $this->getPsr7JsonResponseForFixture('Endpoints/Metrics/getAggregateData.json'); |
22 | 22 | $client = $this->getMockClient($response); |
23 | 23 | |
24 | - /** @var \AcquiaCloudApi\CloudApi\ClientInterface $client */ |
|
24 | + /** @var \AcquiaCloudApi\CloudApi\ClientInterface $client */ |
|
25 | 25 | $account = new Metrics($client); |
26 | 26 | $result = $account->getAggregateData('8ff6c046-ec64-4ce4-bea6-27845ec18600'); |
27 | 27 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | if (!isset($this->accessToken) || $this->accessToken->hasExpired()) { |
69 | 69 | $cache = new FilesystemAdapter('acquia-php-sdk-v2'); |
70 | - $accessToken = $cache->get('cloudapi-token', function (ItemInterface $item) { |
|
70 | + $accessToken = $cache->get('cloudapi-token', function(ItemInterface $item) { |
|
71 | 71 | $item->expiresAfter(300); |
72 | 72 | return $this->provider->getAccessToken('client_credentials'); |
73 | 73 | }); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | return $this->provider->getAuthenticatedRequest( |
79 | 79 | $verb, |
80 | - self::BASE_URI . $path, |
|
80 | + self::BASE_URI.$path, |
|
81 | 81 | $this->accessToken |
82 | 82 | ); |
83 | 83 | } |