Code Duplication    Length = 6-6 lines in 3 locations

lib/private/App/DependencyAnalyzer.php 3 locations

@@ 139-144 (lines=6) @@
136
	 */
137
	private function analyzePhpVersion(array $dependencies) {
138
		$missing = [];
139
		if (isset($dependencies['php']['@attributes']['min-version'])) {
140
			$minVersion = $dependencies['php']['@attributes']['min-version'];
141
			if ($this->compareSmaller($this->platform->getPhpVersion(), $minVersion)) {
142
				$missing[] = (string)$this->l->t('PHP %s or higher is required.', $minVersion);
143
			}
144
		}
145
		if (isset($dependencies['php']['@attributes']['max-version'])) {
146
			$maxVersion = $dependencies['php']['@attributes']['max-version'];
147
			if ($this->compareBigger($this->platform->getPhpVersion(), $maxVersion)) {
@@ 145-150 (lines=6) @@
142
				$missing[] = (string)$this->l->t('PHP %s or higher is required.', $minVersion);
143
			}
144
		}
145
		if (isset($dependencies['php']['@attributes']['max-version'])) {
146
			$maxVersion = $dependencies['php']['@attributes']['max-version'];
147
			if ($this->compareBigger($this->platform->getPhpVersion(), $maxVersion)) {
148
				$missing[] = (string)$this->l->t('PHP with a version lower than %s is required.', $maxVersion);
149
			}
150
		}
151
		if (isset($dependencies['php']['@attributes']['min-int-size'])) {
152
			$intSize = $dependencies['php']['@attributes']['min-int-size'];
153
			if ($intSize > $this->platform->getIntSize()*8) {
@@ 151-156 (lines=6) @@
148
				$missing[] = (string)$this->l->t('PHP with a version lower than %s is required.', $maxVersion);
149
			}
150
		}
151
		if (isset($dependencies['php']['@attributes']['min-int-size'])) {
152
			$intSize = $dependencies['php']['@attributes']['min-int-size'];
153
			if ($intSize > $this->platform->getIntSize()*8) {
154
				$missing[] = (string)$this->l->t('%sbit or higher PHP required.', $intSize);
155
			}
156
		}
157
		return $missing;
158
	}
159