Code Duplication    Length = 7-12 lines in 2 locations

settings/Panels/Admin/BackgroundJobs.php 1 location

@@ 40-46 (lines=7) @@
37
		return 0;
38
	}
39
40
	public function getPanel() {
41
		$tmpl = new Template('settings', 'panels/admin/backgroundjobs');
42
		$tmpl->assign('cron_log', $this->config->getSystemValue('cron_log', true));
43
		$tmpl->assign('lastcron', $this->config->getAppValue('core', 'lastcron', false));
44
		$tmpl->assign('backgroundjobs_mode', $this->config->getAppValue('core', 'backgroundjobs_mode', 'ajax'));
45
		return $tmpl;
46
	}
47
48
	public function getSectionID() {
49
		return 'general';

settings/Panels/Admin/Certificates.php 1 location

@@ 51-62 (lines=12) @@
48
		return 0;
49
	}
50
51
	public function getPanel() {
52
		if ($this->config->getSystemValue('enable_certificate_management', false)) {
53
			$tmpl = new Template('settings', 'panels/admin/certificates');
54
			$tmpl->assign('type', 'admin');
55
			$tmpl->assign('uploadRoute', 'settings.Certificate.addSystemRootCertificate');
56
			$tmpl->assign('certs', $this->certificateManager->listCertificates());
57
			$tmpl->assign('urlGenerator', $this->urlGenerator);
58
			return $tmpl;
59
		} else {
60
			return null;
61
		}
62
	}
63
64
	public function getSectionID() {
65
		return 'general';