Code Duplication    Length = 4-4 lines in 2 locations

lib/Controller/SettingsController.php 2 locations

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