@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $inventory = []; |
| 53 | 53 | |
| 54 | 54 | foreach ($this->collectors as $collector) { |
| 55 | - if($collector instanceof InventoryAwareCollector) { |
|
| 55 | + if ($collector instanceof InventoryAwareCollector) { |
|
| 56 | 56 | $collector->setInventory($inventory); |
| 57 | 57 | } |
| 58 | 58 | $collected = $collector->collect(); |
@@ -17,7 +17,9 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function collect(): array |
| 19 | 19 | { |
| 20 | - if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)) return []; |
|
| 20 | + if (!array_key_exists(ApacheServerNameCollector::COLLECTION_IDENTIFIER, $this->inventory)) { |
|
| 21 | + return []; |
|
| 22 | + } |
|
| 21 | 23 | |
| 22 | 24 | $configs = $this->inventory[ApacheServerNameCollector::COLLECTION_IDENTIFIER]; |
| 23 | 25 | |