@@ -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 | } |