| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | protected function getRequest() |
||
| 41 | { |
||
| 42 | $dispatcher = $this->dispatcher; |
||
| 43 | $factory = new RequestFactory(); |
||
| 44 | $isValidDispatcher = ($dispatcher instanceof DispatcherInterface); |
||
| 45 | |||
| 46 | if ($isValidDispatcher) { |
||
| 47 | $factory->overwriteDispatcher($dispatcher); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $factory->create(); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |