Code Duplication    Length = 4-4 lines in 2 locations

controller/settingscontroller.php 2 locations

@@ 74-77 (lines=4) @@
71
		// Private API call
72
		$navigation = $this->navigationManager->getAll();
73
		$order = json_decode($this->appConfig->getUserValue('order', $this->userId));
74
		if($order === null){
75
			$order = json_decode($this->appConfig->getAppValue('order'));
76
			if($order === null) $order = array();
77
		}
78
		$nav = $this->util->matchOrder($navigation, $order);
79
		$hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId));
80
		if($hidden === null){
@@ 80-83 (lines=4) @@
77
		}
78
		$nav = $this->util->matchOrder($navigation, $order);
79
		$hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId));
80
		if($hidden === null){
81
			$hidden = json_decode($this->appConfig->getAppValue('hidden'));
82
			if($hidden === null) $hidden = array();
83
		}
84
		return new TemplateResponse(
85
			$this->appName,
86
			'admin',