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