| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 6 | public function process(Request $request, Handler $handler) : Response |
|
| 33 | { |
||
| 34 | 6 | $connection = $handler->getConnection(); |
|
| 35 | |||
| 36 | 6 | if ($connection->isClosed()) { |
|
| 37 | 6 | $handler->handle(new Authenticate( |
|
| 38 | 6 | $connection->open(), |
|
| 39 | 6 | $this->username, |
|
| 40 | 6 | $this->password |
|
| 41 | )); |
||
| 42 | } |
||
| 43 | |||
| 44 | 2 | return $handler->handle($request); |
|
| 45 | } |
||
| 46 | } |
||
| 47 |