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