UserListCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace App\Command;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
8
class UserListCommand extends AbstractUserCommand
9
{
10
    protected function configure()
11
    {
12
        $this
13
            ->setName('gitki:user:list')
14
            ->setDescription('Lists the existing users');
15
    }
16
17
    protected function execute(InputInterface $input, OutputInterface $output)
18
    {
19
        $users = $this->findUsers();
20
        $this->printUserTable($output, $users);
21
    }
22
}
23