Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 107-109 (lines=3) @@
104
	public function onAppDisabled($appId) {
105
		$appInfo = \OC_App::getAppInfo($appId); // hello static legacy
106
107
		if(isset($appInfo['settings'][IManager::KEY_ADMIN_SECTION])) {
108
			$this->remove(self::TABLE_ADMIN_SECTIONS, trim($appInfo['settings'][IManager::KEY_ADMIN_SECTION], '\\'));
109
		}
110
		if(isset($appInfo['settings'][IManager::KEY_ADMIN_SETTINGS])) {
111
			$this->remove(self::TABLE_ADMIN_SETTINGS, trim($appInfo['settings'][IManager::KEY_ADMIN_SETTINGS], '\\'));
112
		}
@@ 110-112 (lines=3) @@
107
		if(isset($appInfo['settings'][IManager::KEY_ADMIN_SECTION])) {
108
			$this->remove(self::TABLE_ADMIN_SECTIONS, trim($appInfo['settings'][IManager::KEY_ADMIN_SECTION], '\\'));
109
		}
110
		if(isset($appInfo['settings'][IManager::KEY_ADMIN_SETTINGS])) {
111
			$this->remove(self::TABLE_ADMIN_SETTINGS, trim($appInfo['settings'][IManager::KEY_ADMIN_SETTINGS], '\\'));
112
		}
113
	}
114
115
	public function checkForOrphanedClassNames() {