Code Duplication    Length = 10-10 lines in 2 locations

src/controllers/PhpunitController.php 2 locations

@@ 91-100 (lines=10) @@
88
        return $this->_version;
89
    }
90
91
    public function actionGenfake($file)
92
    {
93
        $path = $this->buildFakePath($file);
94
        if (!$this->force && file_exists($path)) {
95
            Yii::warning("already exists: $path");
96
            return 1;
97
        }
98
99
        return $this->genFake($file, $path);
100
    }
101
102
    public function genFake($file, $path)
103
    {
@@ 112-121 (lines=10) @@
109
        BaseHandler::write($path, $text);
110
    }
111
112
    public function actionGentest($file)
113
    {
114
        $path = $this->buildTestPath($file);
115
        if (!$this->force && file_exists($path)) {
116
            Yii::warning("already exists: $path");
117
            return 1;
118
        }
119
120
        return $this->genSkel($file);
121
    }
122
123
    public function genSkel($file)
124
    {