Code Duplication    Length = 9-9 lines in 2 locations

lib/private/App/CodeChecker/InfoChecker.php 2 locations

@@ 97-105 (lines=9) @@
94
			];
95
		}
96
97
		if (isset($info['dependencies']['owncloud']['@attributes']['min-version']) && ($info['requiremin'] || $info['require'])) {
98
			$this->emit('InfoChecker', 'duplicateRequirement', ['min']);
99
			$errors[] = [
100
				'type' => 'duplicateRequirement',
101
				'field' => 'min',
102
			];
103
		} elseif (!isset($info['dependencies']['owncloud']['@attributes']['min-version'])) {
104
			$this->emit('InfoChecker', 'missingRequirement', ['min']);
105
		}
106
107
		if (isset($info['dependencies']['owncloud']['@attributes']['max-version']) && $info['requiremax']) {
108
			$this->emit('InfoChecker', 'duplicateRequirement', ['max']);
@@ 107-115 (lines=9) @@
104
			$this->emit('InfoChecker', 'missingRequirement', ['min']);
105
		}
106
107
		if (isset($info['dependencies']['owncloud']['@attributes']['max-version']) && $info['requiremax']) {
108
			$this->emit('InfoChecker', 'duplicateRequirement', ['max']);
109
			$errors[] = [
110
				'type' => 'duplicateRequirement',
111
				'field' => 'max',
112
			];
113
		} elseif (!isset($info['dependencies']['owncloud']['@attributes']['max-version'])) {
114
			$this->emit('InfoChecker', 'missingRequirement', ['max']);
115
		}
116
117
		foreach ($info as $key => $value) {
118
			if (\is_array($value)) {