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