| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public static function createAtlassianRestClient(TokenStorageInterface $tokenStorage): AtlassianRestClient |
||
| 15 | { |
||
| 16 | $stack = new HandlerStack(); |
||
| 17 | $stack->setHandler(new CurlHandler()); |
||
| 18 | |||
| 19 | $stack->push(GuzzleJWTMiddleware::middleware(new Client())); |
||
| 20 | |||
| 21 | return new AtlassianRestClient(new Client(['handler' => $stack]), $tokenStorage); |
||
| 22 | } |
||
| 24 |