Code Duplication    Length = 23-23 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateHydratorsCommand.php 1 location

@@ 31-53 (lines=23) @@
28
    /**
29
     * @see Console\Command\Command
30
     */
31
    protected function configure()
32
    {
33
        $this
34
        ->setName('odm:generate:hydrators')
35
        ->setDescription('Generates hydrator classes for document classes.')
36
        ->setDefinition([
37
            new InputOption(
38
                'filter',
39
                null,
40
                InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
41
                'A string pattern used to match documents that should be processed.'
42
            ),
43
            new InputArgument(
44
                'dest-path',
45
                InputArgument::OPTIONAL,
46
                'The path to generate your hydrator classes. If none is provided, it will attempt to grab from configuration.'
47
            ),
48
        ])
49
        ->setHelp(<<<EOT
50
Generates hydrator classes for document classes.
51
EOT
52
        );
53
    }
54
55
    /**
56
     * @see Console\Command\Command

lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GeneratePersistentCollectionsCommand.php 1 location

@@ 31-53 (lines=23) @@
28
    /**
29
     * @see Console\Command\Command
30
     */
31
    protected function configure()
32
    {
33
        $this
34
            ->setName('odm:generate:persistent-collections')
35
            ->setDescription('Generates persistent collection classes for custom collections.')
36
            ->setDefinition([
37
                new InputOption(
38
                    'filter',
39
                    null,
40
                    InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
41
                    'A string pattern used to match documents that should be processed.'
42
                ),
43
                new InputArgument(
44
                    'dest-path',
45
                    InputArgument::OPTIONAL,
46
                    'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.'
47
                ),
48
            ])
49
            ->setHelp(<<<EOT
50
Generates persistent collection classes for custom collections.
51
EOT
52
            );
53
    }
54
55
    /**
56
     * @see Console\Command\Command