Conditions | 2 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __construct( |
||
28 | private readonly string $headerParameter = 'Authorization', |
||
29 | private readonly string $tokenType = 'Bearer', |
||
30 | ) { |
||
31 | $this->regex = sprintf( |
||
32 | '/^%s([a-zA-Z0-9\-_\+~\/\.]+=*)$/', |
||
33 | '' === $this->tokenType ? '' : preg_quote($this->tokenType).'\s+' |
||
34 | ); |
||
55 |