@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | array_map( |
17 | - static function ($cron) { |
|
17 | + static function($cron) { |
|
18 | 18 | return new CronResponse($cron); |
19 | 19 | }, |
20 | 20 | $crons |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | parent::__construct( |
16 | 16 | array_map( |
17 | - static function ($environment) { |
|
17 | + static function($environment) { |
|
18 | 18 | return new EnvironmentResponse($environment); |
19 | 19 | }, |
20 | 20 | $environments |
@@ -74,7 +74,7 @@ |
||
74 | 74 | /** |
75 | 75 | * Add a query parameter to filter results. |
76 | 76 | */ |
77 | - public function addQuery(string $name, int|string $value): void; |
|
77 | + public function addQuery(string $name, int | string $value): void; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Get options from Client. |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | /** @infection-ignore-all */ |
100 | 100 | $cache = new FilesystemAdapter('cache', 300, $directory); |
101 | 101 | $orgUuid = getenv('AH_ORGANIZATION_UUID'); |
102 | - $cacheKey = 'cloudapi-token-' . $this->clientId . $orgUuid; |
|
103 | - $accessToken = $cache->get($cacheKey, function () use ($orgUuid) { |
|
102 | + $cacheKey = 'cloudapi-token-'.$this->clientId.$orgUuid; |
|
103 | + $accessToken = $cache->get($cacheKey, function() use ($orgUuid) { |
|
104 | 104 | $options = []; |
105 | 105 | if ($orgUuid) { |
106 | - $options['scope'] = 'organization:' . $orgUuid; |
|
106 | + $options['scope'] = 'organization:'.$orgUuid; |
|
107 | 107 | } |
108 | 108 | return $this->provider->getAccessToken('client_credentials', $options); |
109 | 109 | }); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | return $this->provider->getAuthenticatedRequest( |
115 | 115 | $verb, |
116 | - $this->getBaseUri() . $path, |
|
116 | + $this->getBaseUri().$path, |
|
117 | 117 | $this->accessToken |
118 | 118 | ); |
119 | 119 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * @var null[]|object |
11 | 11 | */ |
12 | - public array|object $server; |
|
12 | + public array | object $server; |
|
13 | 13 | |
14 | 14 | public string $command; |
15 | 15 |