Code Duplication    Length = 8-9 lines in 2 locations

lib/private/Updater.php 1 location

@@ 366-373 (lines=8) @@
363
	/**
364
	 * @return bool
365
	 */
366
	private function isCodeUpgrade() {
367
		$installedVersion = $this->config->getSystemValue('version', '0.0.0');
368
		$currentVersion = implode('.', Util::getVersion());
369
		if (version_compare($currentVersion, $installedVersion, '>')) {
370
			return true;
371
		}
372
		return false;
373
	}
374
375
	/**
376
	 * @param array $disabledApps

lib/private/Repair/Apps.php 1 location

@@ 83-91 (lines=9) @@
80
	 * Are we updating from an older version?
81
	 * @return bool
82
	 */
83
	private function isCoreUpdate() {
84
		$installedVersion = $this->config->getSystemValue('version', '0.0.0');
85
		$currentVersion = implode('.', Util::getVersion());
86
		$versionDiff = version_compare($currentVersion, $installedVersion);
87
		if ($versionDiff > 0) {
88
			return true;
89
		}
90
		return false;
91
	}
92
93
	/**
94
	 * If we are updating from <= 10.0.0 we need to enable the marketplace before running the update