Code Duplication    Length = 10-10 lines in 2 locations

util.php 2 locations

@@ 38-47 (lines=10) @@
35
		$this->appConfig = $appConfig;
36
	}
37
38
	public function getAppOrder() {
39
		$order_user = $this->appConfig->getUserValue('order', $this->userId);
40
		$order_default = $this->appConfig->getAppValue('order');
41
		if ($order_user !== null && $order_user !== "") {
42
			$order = $order_user;
43
		} else {
44
			$order = $order_default;
45
		}
46
		return $order;
47
	}
48
49
	public function matchOrder($nav, $order) {
50
		$nav_tmp = array();
@@ 70-79 (lines=10) @@
67
		return $result;
68
	}
69
70
	public function getAppHidden() {
71
		$hidden_user = $this->appConfig->getUserValue('hidden', $this->userId);
72
		$hidden_default = $this->appConfig->getAppValue('hidden');
73
		if ($hidden_user !== null && $hidden_user !== "") {
74
			$hidden = $hidden_user;
75
		} else {
76
			$hidden = $hidden_default;
77
		}
78
		return $hidden;
79
	}
80
81
}
82