| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 40 | public function extractAccessToken(ServerRequestInterface $request): ?string | ||
| 41 |     { | ||
| 42 | if (!$request->hasHeader($this->headerParameter) || | ||
| 43 | !is_string($header = $request->getHeaderLine($this->headerParameter)) | ||
| 44 |         ) { | ||
| 45 | return null; | ||
| 46 | } | ||
| 47 | |||
| 48 |         if (preg_match($this->regex, $header, $matches)) { | ||
| 49 | return $matches[1]; | ||
| 50 | } | ||
| 51 | |||
| 52 | return null; | ||
| 53 | } | ||
| 55 |