| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function callbackAction(Request $request, $provider) |
||
| 36 | { |
||
| 37 | sleep(5); |
||
| 38 | $data = array(); |
||
| 39 | $status = 200; |
||
| 40 | $configuration = $this->requestConfigurationFactory->create($this->metadata, $request); |
||
| 41 | |||
| 42 | try { |
||
| 43 | $this->getSmsSender()->acceptCallback($provider, $request->query->all()); |
||
| 44 | } catch (WrappedException $e) { |
||
| 45 | $data = array('error' => $e->getWrappedException()->getMessage()); |
||
| 46 | $status = 400; |
||
| 47 | } catch (\Exception $e) { |
||
| 48 | $data = array('error' => $e->getMessage()); |
||
| 49 | $status = 400; |
||
| 50 | } |
||
| 51 | |||
| 52 | return $this->viewHandler->handle($configuration, View::create($data, $status)); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.