Code Duplication    Length = 12-13 lines in 2 locations

AdminModule/presenters/SettingsPresenter.php 2 locations

@@ 29-40 (lines=12) @@
26
27
    /* BASIC */
28
29
    public function createComponentBasicSettingsForm()
30
    {
31
        $settings = array();
32
        $settings[] = $this->settings->get('Root domain', \WebCMS\Settings::SECTION_BASIC, 'checkbox');
33
        $settings[] = $this->settings->get('Navbar dropdown', \WebCMS\Settings::SECTION_BASIC, 'checkbox');
34
        $settings[] = $this->settings->get('Info email', \WebCMS\Settings::SECTION_BASIC, 'text');
35
        $settings[] = $this->settings->get('Navbar class', \WebCMS\Settings::SECTION_BASIC, 'text');
36
        $settings[] = $this->settings->get('Navbar id', \WebCMS\Settings::SECTION_BASIC, 'text');
37
        $settings[] = $this->settings->get('Sidebar class', \WebCMS\Settings::SECTION_BASIC, 'text');
38
39
        return $this->createSettingsForm($settings);
40
    }
41
42
    public function renderDefault()
43
    {
@@ 471-483 (lines=13) @@
468
        $this->template->scriptsHooks = $hooks;
469
    }
470
471
    public function createComponentScriptsGlobalForm()
472
    {
473
        $settings = array();
474
475
        $settings[] = $this->settings->get('Scripts head', \WebCMS\Settings::SECTION_BASIC, 'textarea-plain');
476
        $settings[] = $this->settings->get('Enable scripts head', \WebCMS\Settings::SECTION_BASIC, 'checkbox-toggle');
477
        $settings[] = $this->settings->get('Scripts body start', \WebCMS\Settings::SECTION_BASIC, 'textarea-plain');
478
        $settings[] = $this->settings->get('Enable scripts body start', \WebCMS\Settings::SECTION_BASIC, 'checkbox-toggle');
479
        $settings[] = $this->settings->get('Scripts body end', \WebCMS\Settings::SECTION_BASIC, 'textarea-plain');
480
        $settings[] = $this->settings->get('Enable scripts body end', \WebCMS\Settings::SECTION_BASIC, 'checkbox-toggle');
481
482
        return $this->createSettingsForm($settings);
483
    }
484
485
    /* STYLES SETTINGS */
486