Code Duplication    Length = 20-20 lines in 2 locations

src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsOverviewsGenerateCommand.php 1 location

@@ 39-58 (lines=20) @@
36
        $this->em = $em;
37
    }
38
39
    protected function configure()
40
    {
41
        $this
42
            ->setName('kuma:dashboard:widget:googleanalytics:overviews:generate')
43
            ->setDescription('Generate overviews')
44
            ->addOption(
45
                'config',
46
                null,
47
                InputOption::VALUE_OPTIONAL,
48
                'Specify to only update one config',
49
                false
50
            )
51
            ->addOption(
52
                'segment',
53
                null,
54
                InputOption::VALUE_OPTIONAL,
55
                'Specify to only update one segment',
56
                false
57
            );
58
    }
59
60
    /**
61
     * @param InputInterface  $input

src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsOverviewsListCommand.php 1 location

@@ 38-57 (lines=20) @@
35
        $this->em = $em;
36
    }
37
38
    protected function configure()
39
    {
40
        $this
41
            ->setName('kuma:dashboard:widget:googleanalytics:overviews:list')
42
            ->setDescription('List available overviews')
43
            ->addOption(
44
                'config',
45
                null,
46
                InputOption::VALUE_OPTIONAL,
47
                'Specify to only list overviews of one config',
48
                false
49
            )
50
            ->addOption(
51
                'segment',
52
                null,
53
                InputOption::VALUE_OPTIONAL,
54
                'Specify to only list overviews of one segment',
55
                false
56
            );
57
    }
58
59
    /**
60
     * @param InputInterface  $input