Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function _get($name) |
||
19 | { |
||
20 | $name = $this->createFileName($name); |
||
21 | $file = $this->cacheDir . '/' . $name; |
||
22 | $data = @file_get_contents($file); |
||
23 | if (!$data) { |
||
24 | return false; |
||
25 | } |
||
26 | |||
27 | $data = $this->unpackData($data); |
||
28 | if (false === $data) { |
||
29 | @unlink($file); |
||
|
|||
30 | |||
31 | $data = null; |
||
32 | } |
||
33 | |||
34 | return $data; |
||
35 | } |
||
36 | |||
100 |
If you suppress an error, we recommend checking for the error condition explicitly: