@@ -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 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $items = $body; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - $class = '\AcquiaCloudApi\Response\\' . $class; |
|
| 39 | + $class = '\AcquiaCloudApi\Response\\'.$class; |
|
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | // var_dump($body); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | parent::__construct( |
| 47 | 47 | array_map( |
| 48 | - function ($child) use ($class) { |
|
| 48 | + function($child) use ($class) { |
|
| 49 | 49 | return new $class($child); |
| 50 | 50 | }, |
| 51 | 51 | $items |
@@ -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)]; |