Code Duplication    Length = 28-28 lines in 2 locations

Command/DownloadDatasetCommand.php 1 location

@@ 28-55 (lines=28) @@
25
        parent::__construct();
26
    }
27
28
    protected function configure()
29
    {
30
        $this
31
            ->setName('datanova:download:dataset')
32
            ->setDescription('Download dataset records to use it locally')
33
            ->addArgument(
34
                'dataset',
35
                InputArgument::REQUIRED,
36
                'Which dataset to download?'
37
            )
38
            ->addArgument(
39
                'format',
40
                InputArgument::OPTIONAL,
41
                'Data file format : CSV (default), JSON',
42
                'CSV'
43
            )
44
            ->addArgument(
45
                'q',
46
                InputArgument::OPTIONAL,
47
                'query filter, by default all results will be download'
48
            )
49
            ->addOption(
50
                'force-replace',
51
                'f',
52
                InputOption::VALUE_NONE,
53
                'If set, the command will replace local storage'
54
            );
55
    }
56
57
    /**
58
     * {@inheritdoc}

Command/DownloadDatasetLegacyCommand.php 1 location

@@ 23-50 (lines=28) @@
20
    /**
21
     * Command configuration
22
     */
23
    protected function configure()
24
    {
25
        $this
26
            ->setName('datanova:legacy:download:dataset')
27
            ->setDescription('Download dataset records to use it locally')
28
            ->addArgument(
29
                'dataset',
30
                InputArgument::REQUIRED,
31
                'Which dataset to download?'
32
            )
33
            ->addArgument(
34
                'format',
35
                InputArgument::OPTIONAL,
36
                'Data file format : CSV (default), JSON',
37
                'CSV'
38
            )
39
            ->addArgument(
40
                'q',
41
                InputArgument::OPTIONAL,
42
                'query filter, by default all results will be download'
43
            )
44
            ->addOption(
45
                'force-replace',
46
                'f',
47
                InputOption::VALUE_NONE,
48
                'If set, the command will replace local storage'
49
            );
50
    }
51
52
    /**
53
     * {@inheritdoc}