Code Duplication    Length = 13-27 lines in 15 locations

src/N98/Magento/Command/Admin/User/ListCommand.php 1 location

@@ 12-24 (lines=13) @@
9
10
class ListCommand extends AbstractAdminUserCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('admin:user:list')
16
            ->setDescription('List admin users.')
17
            ->addOption(
18
                'format',
19
                null,
20
                InputOption::VALUE_OPTIONAL,
21
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
            )
23
        ;
24
    }
25
26
    /**
27
     * @param InputInterface  $input

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

@@ 12-24 (lines=13) @@
9
10
class ListCommand extends AbstractCacheCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('cache:list')
16
            ->setDescription('Lists all magento caches')
17
            ->addOption(
18
                'format',
19
                null,
20
                InputOption::VALUE_OPTIONAL,
21
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
            )
23
        ;
24
    }
25
26
    /**
27
     * @param InputInterface $input

src/N98/Magento/Command/Developer/Module/Rewrite/ListCommand.php 1 location

@@ 12-24 (lines=13) @@
9
10
class ListCommand extends AbstractRewriteCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('dev:module:rewrite:list')
16
            ->setDescription('Lists all magento rewrites')
17
            ->addOption(
18
                'format',
19
                null,
20
                InputOption::VALUE_OPTIONAL,
21
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
            )
23
        ;
24
    }
25
26
    /**
27
     * @param InputInterface  $input

src/N98/Magento/Command/Developer/Theme/ListCommand.php 1 location

@@ 13-25 (lines=13) @@
10
11
class ListCommand extends AbstractMagentoCommand
12
{
13
    protected function configure()
14
    {
15
        $this
16
            ->setName('dev:theme:list')
17
            ->setDescription('Lists all available themes')
18
            ->addOption(
19
                'format',
20
                null,
21
                InputOption::VALUE_OPTIONAL,
22
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
23
            )
24
        ;
25
    }
26
27
    /**
28
     * @param InputInterface $input

src/N98/Magento/Command/GiftCard/InfoCommand.php 1 location

@@ 18-30 (lines=13) @@
15
     *
16
     * @return void
17
     */
18
    protected function configure()
19
    {
20
        $this
21
            ->setName('giftcard:info')
22
            ->addArgument('code', \Symfony\Component\Console\Input\InputArgument::REQUIRED, 'Gift card code')
23
            ->addOption(
24
                'format',
25
                null,
26
                InputOption::VALUE_OPTIONAL,
27
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
28
            )
29
            ->setDescription('Get gift card account information by code');
30
    }
31
32
    /**
33
     * @param InputInterface  $input

src/N98/Magento/Command/Indexer/ListCommand.php 1 location

@@ 12-29 (lines=18) @@
9
10
class ListCommand extends AbstractIndexerCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('index:list')
16
            ->setDescription('Lists all magento indexes')
17
            ->addOption(
18
                'format',
19
                null,
20
                InputOption::VALUE_OPTIONAL,
21
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
            )
23
        ;
24
25
        $help = <<<HELP
26
Lists all Magento indexers of current installation.
27
HELP;
28
        $this->setHelp($help);
29
    }
30
31
    /**
32
     * @param InputInterface  $input

src/N98/Magento/Command/Script/Repository/ListCommand.php 1 location

@@ 12-38 (lines=27) @@
9
10
class ListCommand extends AbstractRepositoryCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('script:repo:list')
16
            ->setDescription('Lists all scripts in repository')
17
            ->addOption(
18
                'format',
19
                null,
20
                InputOption::VALUE_OPTIONAL,
21
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
            )
23
        ;
24
25
        $help = <<<HELP
26
You can organize your scripts in a repository.
27
Simply place a script in folder */usr/local/share/n98-magerun/scripts* or in your home dir
28
in folder *<HOME>/.n98-magerun/scripts*.
29
30
Scripts must have the file extension *.magerun*.
31
32
After that you can list all scripts with the *script:repo:list* command.
33
The first line of the script can contain a comment (line prefixed with #) which will be displayed as description.
34
35
   $ n98-magerun.phar script:repo:list
36
HELP;
37
        $this->setHelp($help);
38
    }
39
40
    /**
41
     * @param InputInterface  $input

src/N98/Magento/Command/System/CheckCommand.php 1 location

@@ 31-50 (lines=20) @@
28
     */
29
    private $config;
30
31
    protected function configure()
32
    {
33
        $this
34
            ->setName('sys:check')
35
            ->setDescription('Checks Magento System')
36
            ->addOption(
37
                'format',
38
                null,
39
                InputOption::VALUE_OPTIONAL,
40
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
41
            );
42
43
        $help = <<<HELP
44
- Checks missing files and folders
45
- Security
46
- PHP Extensions (Required and Bytecode Cache)
47
- MySQL InnoDB Engine
48
HELP;
49
        $this->setHelp($help);
50
    }
51
52
    /**
53
     * @param InputInterface $input

src/N98/Magento/Command/System/Cron/ListCommand.php 1 location

@@ 18-30 (lines=13) @@
15
     */
16
    protected $infos;
17
18
    protected function configure()
19
    {
20
        $this
21
            ->setName('sys:cron:list')
22
            ->setDescription('Lists all cronjobs')
23
            ->addOption(
24
                'format',
25
                null,
26
                InputOption::VALUE_OPTIONAL,
27
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
28
            )
29
        ;
30
    }
31
32
    /**
33
     * @param InputInterface  $input

src/N98/Magento/Command/System/InfoCommand.php 1 location

@@ 22-38 (lines=17) @@
19
     */
20
    protected $infos;
21
22
    protected function configure()
23
    {
24
        $this
25
            ->setName('sys:info')
26
            ->addArgument(
27
                'key',
28
                InputArgument::OPTIONAL,
29
                'Only output value of named param like "version". Key is case insensitive.'
30
            )->setDescription('Prints infos about the current magento system.')
31
            ->addOption(
32
                'format',
33
                null,
34
                InputOption::VALUE_OPTIONAL,
35
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
36
            )
37
        ;
38
    }
39
40
    /**
41
     * @param InputInterface  $input

src/N98/Magento/Command/System/Store/Config/BaseUrlListCommand.php 1 location

@@ 13-25 (lines=13) @@
10
11
class BaseUrlListCommand extends AbstractMagentoCommand
12
{
13
    protected function configure()
14
    {
15
        $this
16
            ->setName('sys:store:config:base-url:list')
17
            ->setDescription('Lists all base urls')
18
            ->addOption(
19
                'format',
20
                null,
21
                InputOption::VALUE_OPTIONAL,
22
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
23
            )
24
        ;
25
    }
26
27
    /**
28
     * @param InputInterface  $input

src/N98/Magento/Command/System/Store/ListCommand.php 1 location

@@ 18-30 (lines=13) @@
15
     */
16
    protected $infos;
17
18
    protected function configure()
19
    {
20
        $this
21
            ->setName('sys:store:list')
22
            ->setDescription('Lists all installed store-views')
23
            ->addOption(
24
                'format',
25
                null,
26
                InputOption::VALUE_OPTIONAL,
27
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
28
            )
29
        ;
30
    }
31
32
    /**
33
     * @param InputInterface  $input

src/N98/Magento/Command/System/Website/ListCommand.php 1 location

@@ 18-30 (lines=13) @@
15
     */
16
    protected $infos;
17
18
    protected function configure()
19
    {
20
        $this
21
            ->setName('sys:website:list')
22
            ->setDescription('Lists all websites')
23
            ->addOption(
24
                'format',
25
                null,
26
                InputOption::VALUE_OPTIONAL,
27
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
28
            )
29
        ;
30
    }
31
32
    /**
33
     * @param InputInterface  $input

src/N98/Magento/Command/Developer/EmailTemplate/UsageCommand.php 1 location

@@ 22-34 (lines=13) @@
19
20
class UsageCommand extends AbstractMagentoCommand
21
{
22
    protected function configure()
23
    {
24
        $this
25
            ->setName('dev:email-template:usage')
26
            ->setDescription('Display database transactional email template usage')
27
            ->addOption(
28
                'format',
29
                null,
30
                InputOption::VALUE_OPTIONAL,
31
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
32
            );
33
    }
34
35
    /**
36
     * @param InputInterface $input
37
     * @param OutputInterface $output

src/N98/Magento/Command/Indexer/ListMviewCommand.php 1 location

@@ 12-29 (lines=18) @@
9
10
class ListMviewCommand extends AbstractMviewIndexerCommand
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('index:list:mview')
16
            ->setDescription('Lists all magento mview indexes')
17
            ->addOption(
18
                'format',
19
                null,
20
                InputOption::VALUE_OPTIONAL,
21
                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
            )
23
        ;
24
25
        $help = <<<HELP
26
Lists all Magento mview indexers of current installation.
27
HELP;
28
        $this->setHelp($help);
29
    }
30
31
    /**
32
     * @param InputInterface  $input