Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
12 | 6 | public function load($resource, $type = null) |
|
13 | { |
||
14 | // $path_to_load = $this->locator->locate($resource); |
||
15 | 6 | $path_to_load = $resource; |
|
16 | |||
17 | 6 | return (new JsonDecode(true))->decode(file_get_contents($path_to_load),JsonEncoder::FORMAT,[ 'json_decode_associative' => true ] ) + ['path' => $path_to_load]; |
|
18 | } |
||
19 | |||
24 | } |