@@ -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 = [ |
@@ -22,11 +22,11 @@ |
||
22 | 22 | public function getLink(string $name) |
23 | 23 | { |
24 | 24 | if (!property_exists($this, 'links')) { |
25 | - throw new NoLinkedResourceException('No linked resources for ' . get_called_class()); |
|
25 | + throw new NoLinkedResourceException('No linked resources for '.get_called_class()); |
|
26 | 26 | } elseif (!property_exists($this->links, $name)) { |
27 | - throw new LinkedResourceNotFoundException('No property exists for ' . $name . '. Available links are ' . implode(' ', array_keys((array) $this->links))); |
|
27 | + throw new LinkedResourceNotFoundException('No property exists for '.$name.'. Available links are '.implode(' ', array_keys((array) $this->links))); |
|
28 | 28 | } elseif (!property_exists($this->links->$name, 'href')) { |
29 | - throw new LinkedResourceNotFoundException('No href property exists for ' . $name); |
|
29 | + throw new LinkedResourceNotFoundException('No href property exists for '.$name); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | return ['type' => $name, 'path' => $this->links->$name->href, 'responseClass' => get_class($this)]; |
@@ -36,11 +36,11 @@ |
||
36 | 36 | $items = $body; |
37 | 37 | } |
38 | 38 | |
39 | - $class = '\AcquiaCloudApi\Response\\' . $class; |
|
39 | + $class = '\AcquiaCloudApi\Response\\'.$class; |
|
40 | 40 | |
41 | 41 | parent::__construct( |
42 | 42 | array_map( |
43 | - function ($child) use ($class) { |
|
43 | + function($child) use ($class) { |
|
44 | 44 | return new $class($child); |
45 | 45 | }, |
46 | 46 | $items |
@@ -70,6 +70,6 @@ |
||
70 | 70 | ); |
71 | 71 | } |
72 | 72 | |
73 | - throw new LinkedResourceNotImplementedException($type . ' link not implemented in this SDK. Please file an issue here: https://github.com/typhonius/acquia-php-sdk-v2/issues'); |
|
73 | + throw new LinkedResourceNotImplementedException($type.' link not implemented in this SDK. Please file an issue here: https://github.com/typhonius/acquia-php-sdk-v2/issues'); |
|
74 | 74 | } |
75 | 75 | } |
@@ -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 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | parent::__construct( |
18 | 18 | array_map( |
19 | - function ($sshkey) { |
|
19 | + function($sshkey) { |
|
20 | 20 | return new SshKeyResponse($sshkey); |
21 | 21 | }, |
22 | 22 | $sshkeys |