| Conditions | 4 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function getTypes() |
||
| 17 | { |
||
| 18 | if (null === $this->types) { |
||
| 19 | $file = __DIR__.'/ResultTypes.csv'; |
||
| 20 | $content = file_get_contents($file); |
||
| 21 | $rows = explode(\chr(10), $content); |
||
| 22 | array_shift($rows); |
||
| 23 | foreach ($rows as $row) { |
||
| 24 | $row = explode(',', $row); |
||
| 25 | if (isset($row[1])) { |
||
| 26 | $this->types[strtolower($row[0])] = $row[1]; |
||
| 27 | } |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | return $this->types; |
||
| 32 | } |
||
| 34 |