| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 47 | { |
||
| 48 | 1 | $userId = (int)$input->getArgument('user'); |
|
| 49 | 1 | $tokens = $this->token->getTokensForUser($userId); |
|
| 50 | |||
| 51 | 1 | $table = new Table($output); |
|
| 52 | 1 | $table->setHeaders(['token', 'roles']); |
|
| 53 | |||
| 54 | 1 | foreach ($tokens as $token => $data) { |
|
| 55 | 1 | $table->addRow([$token, implode(',', $data)]); |
|
| 56 | } |
||
| 57 | |||
| 58 | 1 | $table->render(); |
|
| 59 | 1 | } |
|
| 60 | } |
||
| 61 |