Code Duplication    Length = 12-13 lines in 2 locations

src/Command/DeleteAlertCommand.php 1 location

@@ 17-29 (lines=13) @@
14
    protected $alertRepo;
15
    protected $verbose = 0;
16
17
    protected function configure()
18
    {
19
        parent::configure(); // See BaseCommand.php
20
        $this
21
            ->setName('DeleteAlert')
22
            ->setDescription('Deletes an alert and corrects totals')
23
            ->addArgument(
24
                'alert',
25
                InputArgument::REQUIRED,
26
                'Alert ID to process'
27
            );
28
29
        $this->alertRepo = $this->container->get('Ps2alerts\Api\Repository\AlertRepository');
30
    }
31
32
    protected function execute(InputInterface $input, OutputInterface $output)

src/Command/LeaderboardPlayersCommand.php 1 location

@@ 14-25 (lines=12) @@
11
{
12
    protected $redis;
13
14
    protected function configure()
15
    {
16
        parent::configure(); // See BaseCommand.php
17
        $this
18
            ->setName('Leaderboards:Players')
19
            ->setDescription('Processes player leaderboards')
20
            ->addArgument(
21
                'server',
22
                InputArgument::REQUIRED
23
            );
24
25
        $this->redis = $this->container->get('redis');
26
    }
27
28
    protected function execute(InputInterface $input, OutputInterface $output)