Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 83-89 (lines=7) @@
80
81
		$info = $this->infoParser->parse($appPath . '/appinfo/info.xml');
82
83
		if (!isset($info['dependencies']['nextcloud']['@attributes']['min-version'])) {
84
			$errors[] = [
85
				'type' => 'missingRequirement',
86
				'field' => 'min',
87
			];
88
			$this->emit('InfoChecker', 'missingRequirement', ['min']);
89
		}
90
91
		if (!isset($info['dependencies']['nextcloud']['@attributes']['max-version'])) {
92
			$errors[] = [
@@ 91-97 (lines=7) @@
88
			$this->emit('InfoChecker', 'missingRequirement', ['min']);
89
		}
90
91
		if (!isset($info['dependencies']['nextcloud']['@attributes']['max-version'])) {
92
			$errors[] = [
93
				'type' => 'missingRequirement',
94
				'field' => 'max',
95
			];
96
			$this->emit('InfoChecker', 'missingRequirement', ['max']);
97
		}
98
99
		foreach ($info as $key => $value) {
100
			if(is_array($value)) {