Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function get($fname, $type) |
||
26 | { |
||
27 | if ($this->type === self::KEYS_IN_VALUES) { |
||
28 | return $fname; |
||
29 | } |
||
30 | |||
31 | try |
||
32 | { |
||
33 | $this->check_exists($fname); |
||
34 | |||
35 | $key = $this->load($fname); |
||
36 | } |
||
37 | catch (\Exception $e) |
||
38 | { |
||
39 | throw new Exception\Runtime('The file with the '.$type.' key was '.$e->getMessage().'!'); |
||
40 | } |
||
41 | |||
42 | return $key; |
||
43 | } |
||
77 |