Code Duplication    Length = 18-42 lines in 2 locations

src/N98/Magento/Command/Cache/ReportCommand.php 1 location

@@ 41-82 (lines=42) @@
38
    /**
39
     * @return void
40
     */
41
    protected function configure()
42
    {
43
        $this
44
            ->setName('cache:report')
45
            ->addOption(
46
                'fpc',
47
                null,
48
                InputOption::VALUE_NONE,
49
                'Use full page cache instead of core cache'
50
            )
51
            ->addOption(
52
                'tags',
53
                't',
54
                InputOption::VALUE_NONE,
55
                'Output tags'
56
            )
57
            ->addOption(
58
                'mtime',
59
                'm',
60
                InputOption::VALUE_NONE,
61
                'Output last modification time'
62
            )
63
            ->addOption(
64
                'filter-id',
65
                '',
66
                InputOption::VALUE_OPTIONAL,
67
                'Filter output by ID (substring)'
68
            )
69
            ->addOption(
70
                'filter-tag',
71
                '',
72
                InputOption::VALUE_OPTIONAL,
73
                'Filter output by TAG (separate multiple tags by comma)'
74
            )
75
            ->addOption(
76
                'format',
77
                null,
78
                InputOption::VALUE_OPTIONAL,
79
                'Output Format. One of [' . implode(', ', RendererFactory::getFormats()) . ']'
80
            )
81
            ->setDescription('View inside the cache');
82
    }
83
84
    /**
85
     * @param InputInterface $input

src/N98/Magento/Command/Customer/CreateCommand.php 1 location

@@ 32-49 (lines=18) @@
29
     */
30
    private $appState;
31
32
    protected function configure()
33
    {
34
        $this
35
            ->setName('customer:create')
36
            ->addArgument('email', InputArgument::OPTIONAL, 'Email')
37
            ->addArgument('password', InputArgument::OPTIONAL, 'Password')
38
            ->addArgument('firstname', InputArgument::OPTIONAL, 'Firstname')
39
            ->addArgument('lastname', InputArgument::OPTIONAL, 'Lastname')
40
            ->addArgument('website', InputArgument::OPTIONAL, 'Website')
41
            ->addArgument('additionalFields', InputArgument::IS_ARRAY, 'Additional fields, specifiy as field_name1 value2 field_name2 value2')
42
            ->addOption(
43
                'format',
44
                null,
45
                InputOption::VALUE_OPTIONAL,
46
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
47
            )
48
            ->setDescription('Creates a new customer/user for shop frontend.');
49
    }
50
51
    /**
52
     * @param AccountManagementInterface $accountManagement