| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function handle(TokenManager $manager) |
||
| 31 | { |
||
| 32 | try { |
||
| 33 | $accessToken = $manager->getAccessToken(); |
||
| 34 | } catch (AppUnauthorizedException $e) { |
||
| 35 | $this->error('No valid refresh token found.'); |
||
| 36 | $this->line("calling 'revolut:authorize' to re-authorize..."); |
||
| 37 | return $this->call('revolut:authorize'); |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->info($accessToken->value); |
||
| 41 | } |
||
| 43 |