Code Duplication    Length = 13-13 lines in 2 locations

src/commands/Controller.php 2 locations

@@ 65-77 (lines=13) @@
62
    /**
63
     * Dump database.
64
     */
65
    public function actionDump()
66
    {
67
        $this->stdout('Dumping ');
68
        $this->stdout($this->getDbComponent(), Console::BOLD);
69
        $this->stdout(' to ');
70
        $this->stdout($this->getDumpFile(), Console::BOLD);
71
        $this->stdout('... ');
72
73
        $this->module->dump($this->file, $this->db);
74
75
        $this->stdout('done', Console::BOLD);
76
        $this->stdout("\n");
77
    }
78
79
    /**
80
     * Restore database.
@@ 82-94 (lines=13) @@
79
    /**
80
     * Restore database.
81
     */
82
    public function actionRestore()
83
    {
84
        $this->stdout('Dumping ');
85
        $this->stdout($this->getDbComponent(), Console::BOLD);
86
        $this->stdout(' from ');
87
        $this->stdout($this->getDumpFile(), Console::BOLD);
88
        $this->stdout('... ');
89
90
        $this->module->restore($this->file, $this->db);
91
92
        $this->stdout('done', Console::BOLD);
93
        $this->stdout("\n");
94
    }
95
}
96