| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function parse($dataset) |
||
| 31 | { |
||
| 32 | $data = false; |
||
| 33 | $path = $this->finder->findDataset($dataset, self::FORMAT); |
||
| 34 | if (false !== $path) { |
||
| 35 | $content = $this->finder->getContent($path); |
||
| 36 | if (null !== $content) { |
||
| 37 | $data = $this->getFieldsFromContent($content); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | return $data; |
||
| 42 | } |
||
| 43 | |||
| 60 |