@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | parent::__construct( |
| 21 | 21 | array_map( |
| 22 | - function ($metric) { |
|
| 22 | + function($metric) { |
|
| 23 | 23 | return new MetricResponse($metric); |
| 24 | 24 | }, |
| 25 | 25 | $metrics |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | parent::__construct( |
| 21 | 21 | array_map( |
| 22 | - function ($team) { |
|
| 22 | + function($team) { |
|
| 23 | 23 | return new TeamResponse($team); |
| 24 | 24 | }, |
| 25 | 25 | $teams |
@@ -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 |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | parent::__construct( |
| 21 | 21 | array_map( |
| 22 | - function ($application) { |
|
| 22 | + function($application) { |
|
| 23 | 23 | return new ApplicationResponse($application); |
| 24 | 24 | }, |
| 25 | 25 | $applications |
@@ -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 { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | * @param string $branch |
| 38 | 38 | * @return OperationResponse |
| 39 | 39 | */ |
| 40 | - public function switch($environmentUuid, $branch): OperationResponse |
|
| 40 | + public function switch ($environmentUuid, $branch): OperationResponse |
|
| 41 | 41 | { |
| 42 | 42 | |
| 43 | 43 | $options = [ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | if (!isset($this->accessToken) || $this->accessToken->hasExpired()) { |
| 70 | 70 | $directory = sprintf('%s%s%s', Path::getHomeDirectory(), \DIRECTORY_SEPARATOR, '.acquia-php-sdk-v2'); |
| 71 | 71 | $cache = new FilesystemAdapter('cache', 300, $directory); |
| 72 | - $accessToken = $cache->get('cloudapi-token', function () { |
|
| 72 | + $accessToken = $cache->get('cloudapi-token', function() { |
|
| 73 | 73 | return $this->provider->getAccessToken('client_credentials'); |
| 74 | 74 | }); |
| 75 | 75 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | return $this->provider->getAuthenticatedRequest( |
| 80 | 80 | $verb, |
| 81 | - $this->baseUri . $path, |
|
| 81 | + $this->baseUri.$path, |
|
| 82 | 82 | $this->accessToken |
| 83 | 83 | ); |
| 84 | 84 | } |