@@ -52,7 +52,7 @@ |
||
| 52 | 52 | throw new \RuntimeException('Unable to connect to ' . $endpoint . ' (ServerException). Message: ' . $e->getMessage()); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - var_dump((string)$response->getBody());die; |
|
| 55 | + var_dump((string)$response->getBody());die; |
|
| 56 | 56 | |
| 57 | 57 | $result = json_decode((string)$response->getBody(), true); |
| 58 | 58 | |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | throw new \RuntimeException('Unable to connect to ' . $endpoint . ' (ServerException). Message: ' . $e->getMessage()); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - var_dump((string)$response->getBody());die; |
|
| 55 | + var_dump((string)$response->getBody()); die; |
|
| 56 | 56 | |
| 57 | 57 | $result = json_decode((string)$response->getBody(), true); |
| 58 | 58 | |
@@ -23,7 +23,9 @@ |
||
| 23 | 23 | { |
| 24 | 24 | if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory) |
| 25 | 25 | || !is_array($this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]) |
| 26 | - ) return []; |
|
| 26 | + ) { |
|
| 27 | + return []; |
|
| 28 | + } |
|
| 27 | 29 | |
| 28 | 30 | $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]; |
| 29 | 31 | |