Code Duplication    Length = 18-19 lines in 2 locations

src/Eccube/Controller/Install/InstallController.php 2 locations

@@ 99-116 (lines=18) @@
96
    }
97
98
    // ようこそ
99
    public function step1(InstallApplication $app, Request $request)
100
    {
101
        $form = $app['form.factory']
102
            ->createBuilder('install_step1')
103
            ->getForm();
104
        $sessionData = $this->getSessionData($request);
105
        $form->setData($sessionData);
106
107
        if ($this->isValid($request, $form)) {
108
            return $app->redirect($app->url('install_step2'));
109
        }
110
111
        $this->checkModules($app);
112
113
        return $app['twig']->render('step1.twig', array(
114
            'form' => $form->createView(),
115
        ));
116
    }
117
118
    // 権限チェック
119
    public function step2(InstallApplication $app, Request $request)
@@ 164-182 (lines=19) @@
161
    }
162
163
    //    データベースの設定
164
    public function step4(InstallApplication $app, Request $request)
165
    {
166
        $form = $app['form.factory']
167
            ->createBuilder('install_step4')
168
            ->getForm();
169
170
        $sessionData = $this->getSessionData($request);
171
        $form->setData($sessionData);
172
173
        if ($this->isValid($request, $form)) {
174
            $this->createDatabaseYamlFile($form->getData());
175
176
            return $app->redirect($app->url('install_step5'));
177
        }
178
179
        return $app['twig']->render('step4.twig', array(
180
            'form' => $form->createView(),
181
        ));
182
    }
183
184
    //    データベースの初期化
185
    public function step5(InstallApplication $app, Request $request)