Code Duplication    Length = 12-12 lines in 2 locations

src/Command/AbstractCommand.php 2 locations

@@ 48-59 (lines=12) @@
45
     *
46
     * @return Task[]
47
     */
48
    protected function buildTasks(array $configuration)
49
    {
50
        $this->io->text('- Building tasks...');
51
        $builder = new TaskBuilder($this->debug);
52
53
        $tasks = $builder->build($configuration);
54
55
        $this->io->text('- Tasks build !');
56
        $this->io->newLine();
57
58
        return $tasks;
59
    }
60
61
    /**
62
     * Build the filter according to the configuration array.
@@ 68-79 (lines=12) @@
65
     *
66
     * @return FilterInterface[]
67
     */
68
    protected function buildFilters(array $configuration)
69
    {
70
        $this->io->text('- Building filters...');
71
        $builder = new FilterBuilder($this->eventDispatcher);
72
73
        $filters = $builder->build($configuration);
74
75
        $this->io->text('- Filters build !');
76
        $this->io->newLine();
77
78
        return $filters;
79
    }
80
81
    /**
82
     * Load the configuration from a yml file.