Code Duplication    Length = 5-5 lines in 2 locations

console.php 2 locations

@@ 38-42 (lines=5) @@
35
36
// Show warning if a PHP version below 7.1.0 is used, this has to happen here
37
// because base.php will already use 7.1 syntax.
38
if (\version_compare(PHP_VERSION, '7.1.0') === -1) {
39
	echo 'This version of ownCloud requires at least PHP 7.1.0'.PHP_EOL;
40
	echo 'You are currently running PHP ' . PHP_VERSION . '. Please update your PHP version.'.PHP_EOL;
41
	exit(1);
42
}
43
44
// Show warning if PHP 8 is used as ownCloud is not compatible with PHP 7.4
45
if (\version_compare(PHP_VERSION, '7.4.0alpha1') !== -1) {
@@ 45-49 (lines=5) @@
42
}
43
44
// Show warning if PHP 8 is used as ownCloud is not compatible with PHP 7.4
45
if (\version_compare(PHP_VERSION, '7.4.0alpha1') !== -1) {
46
	echo 'This version of ownCloud is not compatible with PHP 7.4' . PHP_EOL;
47
	echo 'You are currently running PHP ' . PHP_VERSION . '.' . PHP_EOL;
48
	exit(1);
49
}
50
51
// running oC on Windows is unsupported since 8.1, this has to happen here because
52
// is seems that the autoloader on Windows fails later and just throws an exception.