@@ -17,11 +17,11 @@ |
||
17 | 17 | public function getLink(string $name) |
18 | 18 | { |
19 | 19 | if (!property_exists($this, 'links')) { |
20 | - throw new NoLinkedResourceException('No linked resources for' . get_called_class()); |
|
20 | + throw new NoLinkedResourceException('No linked resources for'.get_called_class()); |
|
21 | 21 | } elseif (!property_exists($this->links, $name)) { |
22 | - throw new LinkedResourceNotFoundException('No property exists for ' . $name . '. Available links are ' . implode(' ', array_keys(get_object_vars($this->links)))); |
|
22 | + throw new LinkedResourceNotFoundException('No property exists for '.$name.'. Available links are '.implode(' ', array_keys(get_object_vars($this->links)))); |
|
23 | 23 | } elseif (!property_exists($this->links->$name, 'href')) { |
24 | - throw new LinkedResourceNotFoundException('href property not found on ' . $name); |
|
24 | + throw new LinkedResourceNotFoundException('href property not found on '.$name); |
|
25 | 25 | } |
26 | 26 | return [$name => $this->links->$name->href]; |
27 | 27 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | // Remove /api from the path as this is already added by the Connector. |
43 | 43 | $path = substr($path, 4); |
44 | 44 | |
45 | - switch($type) { |
|
45 | + switch ($type) { |
|
46 | 46 | case 'alerts': |
47 | 47 | return new \AcquiaCloudApi\Response\InsightAlertsResponse( |
48 | 48 | $this->client->request('get', $path) |