Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | 12 | public function create(Response $response) |
|
19 | { |
||
20 | 12 | if ($response->getStatusCode() === 200) { |
|
21 | 4 | return new AuthorizationResponse($response, AuthorizationResponse::AUTHORISED); |
|
22 | } |
||
23 | |||
24 | 8 | return new AuthorizationResponse($response, AuthorizationResponse::UNAUTHORISED); |
|
25 | } |
||
26 | } |
||
27 |