Code Duplication    Length = 9-10 lines in 2 locations

src/TreeHouse/WorkerBundle/Command/ClearCommand.php 1 location

@@ 33-41 (lines=9) @@
30
    /**
31
     * @inheritdoc
32
     */
33
    protected function configure()
34
    {
35
        $this
36
            ->setName('worker:clear')
37
            ->addArgument('action', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Selects which actions to clear. Defaults to all actions')
38
            ->addOption('state', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The state of jobs to peek for. Valid options are <comment>ready</comment>, <comment>delayed</comment> and <comment>buried</comment>.', ['ready'])
39
            ->setDescription('Clears jobs for action(s)')
40
        ;
41
    }
42
43
    /**
44
     * @inheritdoc

src/TreeHouse/WorkerBundle/Command/PeekCommand.php 1 location

@@ 33-42 (lines=10) @@
30
    /**
31
     * @inheritdoc
32
     */
33
    protected function configure()
34
    {
35
        $this
36
            ->setName('worker:peek')
37
            ->addArgument('action', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Selects which actions to peek for. Defaults to all actions')
38
            ->addOption('state', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The state of job to peek for. Valid options are <comment>ready</comment>, <comment>delayed</comment> and <comment>buried</comment>.', ['ready'])
39
            ->setDescription('Peeks the next job from the queue')
40
            ->setHelp('Inspects the next job from the queue for one or more actions. Note that this does not reserve the job, so it will still be given to a worker if/once it\'s ready.')
41
        ;
42
    }
43
44
    /**
45
     * @inheritdoc