Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function parse($path) |
||
26 | { |
||
27 | try { |
||
28 | $data = NetteNeon::decode(file_get_contents($path)); |
||
29 | } catch (Exception $exception) { |
||
30 | throw new ParseException( |
||
31 | array( |
||
32 | 'message' => 'Error parsing NEON file', |
||
33 | 'exception' => $exception, |
||
34 | ) |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | return $data; |
||
39 | } |
||
40 | |||
49 |