Code Duplication    Length = 7-7 lines in 4 locations

Classes/Tool/CacheWarmUpTool.php 1 location

@@ 34-40 (lines=7) @@
31
     *
32
     * @return string
33
     */
34
    public function getDescription()
35
    {
36
        $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/CacheWarmUp/Launcher.html';
37
        $view = $this->initializeStandaloneView($templateNameAndPath);
38
        $view->assign('sitePath', PATH_site);
39
        return $view->render();
40
    }
41
42
    /**
43
     * Do the job: warm up the cache.

Classes/Tool/ThumbnailGeneratorTool.php 1 location

@@ 36-42 (lines=7) @@
33
     *
34
     * @return string
35
     */
36
    public function getDescription()
37
    {
38
        $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/ThumbnailGenerator/Launcher.html';
39
        $view = $this->initializeStandaloneView($templateNameAndPath);
40
        $view->assign('sitePath', PATH_site);
41
        return $view->render();
42
    }
43
44
    /**
45
     * Do the job: analyse Index.

Classes/Tool/DuplicateRecordsFinderTool.php 1 location

@@ 37-43 (lines=7) @@
34
     *
35
     * @return string
36
     */
37
    public function getDescription()
38
    {
39
        $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/DuplicateRecordsFinder/Launcher.html';
40
        $view = $this->initializeStandaloneView($templateNameAndPath);
41
        $view->assign('sitePath', PATH_site);
42
        return $view->render();
43
    }
44
45
    /**
46
     * Do the job: analyse Index.

Classes/Tool/MissingFilesFinderTool.php 1 location

@@ 39-45 (lines=7) @@
36
     *
37
     * @return string
38
     */
39
    public function getDescription()
40
    {
41
        $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/MissingFilesFinder/Launcher.html';
42
        $view = $this->initializeStandaloneView($templateNameAndPath);
43
        $view->assign('sitePath', PATH_site);
44
        return $view->render();
45
    }
46
47
    /**
48
     * Do the job: analyse Index.