@@ -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); |
|
22 | + throw new LinkedResourceNotFoundException('No property exists for '.$name); |
|
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 $this->links->$name->href; |
27 | 27 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | // Get the final array element which we use to determine the response type. |
46 | 46 | $type = end($segments); |
47 | 47 | |
48 | - switch($type) { |
|
48 | + switch ($type) { |
|
49 | 49 | case 'alerts': |
50 | 50 | return new \AcquiaCloudApi\Response\InsightAlertsResponse( |
51 | 51 | $this->client->request('get', $path) |