Code Duplication    Length = 12-12 lines in 2 locations

src/Commands/DumpCommand.php 1 location

@@ 29-40 (lines=12) @@
26
     *
27
     * @return mixed
28
     */
29
    public function fire()
30
    {
31
        $this->info('Generating optimized autoload modules.');
32
33
        if ($module = $this->argument('module')) {
34
            $this->dump($module);
35
        } else {
36
            foreach ($this->laravel['modules']->all() as $module) {
37
                $this->dump($module->getStudlyName());
38
            }
39
        }
40
    }
41
42
    public function dump($module)
43
    {

src/Commands/PublishConfigurationCommand.php 1 location

@@ 30-41 (lines=12) @@
27
     *
28
     * @return mixed
29
     */
30
    public function fire()
31
    {
32
        if ($module = $this->argument('module')) {
33
            $this->publishConfiguration($module);
34
35
            return;
36
        }
37
38
        foreach ($this->laravel['modules']->enabled() as $module) {
39
            $this->publishConfiguration($module->getName());
40
        }
41
    }
42
43
    /**
44
     * @param string $module