| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| 1 | <?php |
||
| 36 | 27 | public function getRequest() |
|
| 37 | { |
||
| 38 | 27 | if (! is_null($this->request)) { |
|
| 39 | 24 | return $this->request; |
|
| 40 | } |
||
| 41 | |||
| 42 | 3 | if ($this->getContainer()->has('Psr\Http\Message\ServerRequestInterface')) { |
|
| 43 | 3 | $this->request = $this->getContainer()->get('Psr\Http\Message\ServerRequestInterface'); |
|
| 44 | 3 | return $this->request; |
|
| 45 | } |
||
| 46 | |||
| 47 | throw new RuntimeException('Unable to determine an incoming request object'); |
||
| 48 | } |
||
| 49 | |||
| 55 |