Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class AutoBasicAuth implements Authentication |
||
14 | { |
||
15 | /** |
||
16 | * Whether user info should be removed from the URI. |
||
17 | * |
||
18 | * @var bool |
||
19 | */ |
||
20 | private $shouldRemoveUserInfo; |
||
21 | |||
22 | /** |
||
23 | * @param bool|true $shouldRremoveUserInfo |
||
24 | */ |
||
25 | 6 | public function __construct($shouldRremoveUserInfo = true) |
|
28 | 6 | } |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 4 | public function authenticate(RequestInterface $request) |
|
49 |