Code Duplication    Length = 3-3 lines in 2 locations

lib/private/legacy/app.php 1 location

@@ 1143-1145 (lines=3) @@
1140
		//set remote/public handlers
1141
		if (array_key_exists('ocsid', $appData)) {
1142
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1143
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1144
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1145
		}
1146
		foreach ($appData['remote'] as $name => $path) {
1147
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1148
		}

lib/base.php 1 location

@@ 726-728 (lines=3) @@
723
					OC_Template::printGuestPage('', 'error', array('errors' => $errors));
724
					exit;
725
				}
726
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
727
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
728
			}
729
		}
730
		//try to set the session lifetime
731
		$sessionLifeTime = self::getSessionLifeTime();