| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | private function runImport(Request $request) |
||
| 50 | { |
||
| 51 | if ($this->token) { |
||
| 52 | if ($this->token !== $request->get('token')) { |
||
| 53 | throw new InvalidArgumentException('Token validation failed'); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | $data = json_decode($request->getBody(), true); |
||
| 58 | $this->saver->save($data); |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.