Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public function parse(Request $request) |
||
17 | { |
||
18 | $calls = json_decode($request->input('query', '[]')); |
||
19 | |||
20 | if ($calls === null) { |
||
21 | throw new InvalidArgumentException('The query could not be decoded: '.json_last_error_msg()); |
||
22 | } |
||
23 | |||
24 | return new Query($this->getMethodCalls($calls)); |
||
25 | } |
||
26 | |||
40 |