| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 3 | public function register(WritableInterface $container) |
|
| 31 | { |
||
| 32 | 3 | if ($container->has(self::ZAPHEUS_REQUEST)) { |
|
| 33 | 3 | $request = $container->get(self::ZAPHEUS_REQUEST); |
|
| 34 | |||
| 35 | 3 | $request = new Interop\ServerRequest($request); |
|
| 36 | |||
| 37 | 3 | $container->set(self::PSR_REQUEST, $request); |
|
| 38 | 2 | } |
|
| 39 | |||
| 40 | 3 | if ($container->has(self::ZAPHEUS_RESPONSE)) { |
|
| 41 | 3 | $response = $container->get(self::ZAPHEUS_RESPONSE); |
|
| 42 | |||
| 43 | 3 | $response = new Interop\Response($response); |
|
| 44 | |||
| 45 | 3 | $container->set(self::PSR_RESPONSE, $response); |
|
| 46 | 2 | } |
|
| 47 | |||
| 48 | 3 | return $container; |
|
| 49 | } |
||
| 51 |