@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | // location |
| 55 | 55 | $locationId = $attributes['relationships']['location']['data']['id']; |
| 56 | - $location = array_reduce($included, function ($data, $includedData) use ($locationId) { |
|
| 56 | + $location = array_reduce($included, function($data, $includedData) use ($locationId) { |
|
| 57 | 57 | if ($includedData['id'] === $locationId) { |
| 58 | 58 | return LocationsRetrieveResponse::from($includedData); |
| 59 | 59 | } |
@@ -112,8 +112,7 @@ |
||
| 112 | 112 | try { |
| 113 | 113 | $this->client = BookwhenApi::client(!is_null($apiKey) ? $apiKey : $_ENV['INSHORE_BOOKWHEN_API_KEY']); |
| 114 | 114 | } catch (\Exception $e) { |
| 115 | - } |
|
| 116 | - catch (\TypeError $e) { |
|
| 115 | + } catch (\TypeError $e) { |
|
| 117 | 116 | throw new ConfigurationException(); // @todo message |
| 118 | 117 | } |
| 119 | 118 | } |