Code Duplication    Length = 8-9 lines in 2 locations

AdminModule/presenters/SettingsPresenter.php 2 locations

@@ 223-230 (lines=8) @@
220
221
    /* EMAILS */
222
223
    public function createComponentEmailsSettingsForm()
224
    {
225
        $settings = array();
226
        $settings[] = $this->settings->get('User new password subject', \WebCMS\Settings::SECTION_EMAIL, 'text');
227
        $settings[] = $this->settings->get('User new password', \WebCMS\Settings::SECTION_EMAIL, 'textarea');
228
229
        return $this->createSettingsForm($settings);
230
    }
231
232
    public function renderEmails()
233
    {
@@ 509-517 (lines=9) @@
506
        $this->template->stylesHooks = $hooks;
507
    }
508
509
    public function createComponentStylesGlobalForm()
510
    {
511
        $settings = array();
512
513
        $settings[] = $this->settings->get('Styles head', \WebCMS\Settings::SECTION_BASIC, 'textarea-plain');
514
        $settings[] = $this->settings->get('Enable styles head', \WebCMS\Settings::SECTION_BASIC, 'checkbox-toggle');
515
516
        return $this->createSettingsForm($settings);
517
    }
518
519
    /* PROJECT SPECIFIC SETTINGS */
520