Code Duplication    Length = 20-20 lines in 2 locations

src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsOverviewsGenerateCommand.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:generate')
42
            ->setDescription('Generate overviews')
43
            ->addOption(
44
                'config',
45
                null,
46
                InputOption::VALUE_OPTIONAL,
47
                'Specify to only update one config',
48
                false
49
            )
50
            ->addOption(
51
                'segment',
52
                null,
53
                InputOption::VALUE_OPTIONAL,
54
                'Specify to only update one segment',
55
                false
56
            );
57
    }
58
59
    /**
60
     * @param InputInterface  $input

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

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