| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php declare(strict_types=1);  | 
            ||
| 27 | public function authenticate(RequestInterface $request)  | 
            ||
| 28 |     { | 
            ||
| 29 |         if ($request->hasHeader('Authorization')) { | 
            ||
| 30 | return $request;  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | $token = $this->tokenManager->getToken()->__toString();  | 
            ||
| 34 |         $header = sprintf('Bearer %s', $token); | 
            ||
| 35 | |||
| 36 |         return $request->withHeader('Authorization', $header); | 
            ||
| 37 | }  | 
            ||
| 39 |