| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function read() |
||
| 42 | { |
||
| 43 | $data = []; |
||
| 44 | |||
| 45 | $file = hex2bin($_GET["file"]); |
||
| 46 | |||
| 47 | $json_object = (file_exists($file)) ? json_decode(file_get_contents($file)) : array(); |
||
| 48 | $data["json"] = $this->object_to_array($json_object); |
||
| 49 | |||
| 50 | $data["file"] = $file; |
||
| 51 | $data["_file"] = $_GET["file"]; |
||
| 52 | |||
| 53 | return $data; |
||
| 54 | } |
||
| 94 | } |