| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function load(string $path): array |
||
| 12 | { |
||
| 13 | if ($this->doesntExists($path)) { |
||
| 14 | $this->log('File not found: ' . $path); |
||
| 15 | |||
| 16 | return []; |
||
| 17 | } |
||
| 18 | |||
| 19 | $this->log('Loading data from a file: ' . $path); |
||
| 20 | |||
| 21 | $items = Pretty::make()->load($path); |
||
| 22 | |||
| 23 | return $this->correctValues($items); |
||
| 24 | } |
||
| 59 |