Code Duplication    Length = 12-12 lines in 2 locations

controller/settingscontroller.php 2 locations

@@ 54-65 (lines=12) @@
51
	 *
52
	 * @return TemplateResponse
53
	 */
54
	public function adminIndex() {
55
		// Private API call
56
		$navigation = $this->navigationManager->getAll();
57
		$order = json_decode($this->appConfig->getAppValue('order'));
58
		$nav = $this->util->matchOrder($navigation, $order);
59
		return new TemplateResponse(
60
			$this->appName,
61
			'admin',
62
			["nav" => $nav, 'type' => 'admin'],
63
			'blank'
64
		);
65
	}
66
67
	public function personalIndex() {
68
		// Private API call
@@ 67-78 (lines=12) @@
64
		);
65
	}
66
67
	public function personalIndex() {
68
		// Private API call
69
		$navigation = $this->navigationManager->getAll();
70
		$order = json_decode($this->appConfig->getUserValue('order', $this->userId));
71
		$nav = $this->util->matchOrder($navigation, $order);
72
		return new TemplateResponse(
73
			$this->appName,
74
			'admin',
75
			["nav" => $nav, 'type' => 'personal'],
76
			'blank'
77
		);
78
	}
79
80
	/**
81
	 * Admin: save default order