Code Duplication    Length = 7-7 lines in 2 locations

src/Eccube/Command/LoadDataFixturesEccubeCommand.php 1 location

@@ 120-126 (lines=7) @@
117
        ]);
118
119
        $faviconPath = '/assets/img/common/favicon.ico';
120
        if (!file_exists($this->container->getParameter('eccube_html_dir').'/user_data'.$faviconPath)) {
121
            $file = new Filesystem();
122
            $file->copy(
123
                $this->container->getParameter('eccube_html_front_dir').$faviconPath,
124
                $this->container->getParameter('eccube_html_dir').'/user_data'.$faviconPath
125
            );
126
        }
127
128
        $output->writeln(sprintf('  <comment>></comment> <info>%s</info>', 'Finished Successful!'));
129
    }

src/Eccube/Controller/Install/InstallController.php 1 location

@@ 225-231 (lines=7) @@
222
        }
223
224
        $faviconPath = '/assets/img/common/favicon.ico';
225
        if (!file_exists($this->getParameter('eccube_html_dir').'/user_data'.$faviconPath)) {
226
            $file = new Filesystem();
227
            $file->copy(
228
                $this->getParameter('eccube_html_front_dir').$faviconPath,
229
                $this->getParameter('eccube_html_dir').'/user_data'.$faviconPath
230
            );
231
        }
232
233
        return [
234
            'noWritePermissions' => $noWritePermissions,