Conditions | 5 |
Paths | 5 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
43 | public function get ($key) |
||
44 | { |
||
45 | if (is_array($key)) { |
||
46 | $response = []; |
||
47 | foreach ($key as $value) { |
||
48 | $path = $this->getKeyFilePath($value); |
||
49 | if (!file_exists($path)) { |
||
50 | $response[$value] = false; |
||
51 | continue; |
||
52 | } |
||
53 | $response[$value] = file_get_contents($path); |
||
54 | } |
||
55 | return $response; |
||
56 | } |
||
57 | $path = $this->getKeyFilePath($key); |
||
58 | if (!file_exists($path)) { |
||
59 | return false; |
||
60 | } |
||
61 | return file_get_contents($path); |
||
62 | } |
||
63 | } |
||
64 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.