Code Duplication    Length = 5-5 lines in 2 locations

lib/private/App/DependencyAnalyzer.php 2 locations

@@ 316-320 (lines=5) @@
313
			$maxVersion = $appInfo['requiremax'];
314
		}
315
316
		if (!is_null($minVersion)) {
317
			if ($this->compareSmaller($this->platform->getOcVersion(), $minVersion)) {
318
				$missing[] = (string)$this->l->t('Server version %s or higher is required.', $this->toVisibleVersion($minVersion));
319
			}
320
		}
321
		if (!is_null($maxVersion)) {
322
			if ($this->compareBigger($this->platform->getOcVersion(), $maxVersion)) {
323
				$missing[] = (string)$this->l->t('Server version %s or lower is required.', $this->toVisibleVersion($maxVersion));
@@ 321-325 (lines=5) @@
318
				$missing[] = (string)$this->l->t('Server version %s or higher is required.', $this->toVisibleVersion($minVersion));
319
			}
320
		}
321
		if (!is_null($maxVersion)) {
322
			if ($this->compareBigger($this->platform->getOcVersion(), $maxVersion)) {
323
				$missing[] = (string)$this->l->t('Server version %s or lower is required.', $this->toVisibleVersion($maxVersion));
324
			}
325
		}
326
		return $missing;
327
	}
328