Code Duplication    Length = 5-5 lines in 2 locations

index.php 1 location

@@ 38-42 (lines=5) @@
35
36
// Show warning if PHP 7.1 is used as Nextcloud is not compatible with PHP 7.1 for now
37
// @see https://github.com/nextcloud/docker-ci/issues/10
38
if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
39
	echo 'This version of Nextcloud is not compatible with PHP 7.1.<br/>';
40
	echo 'You are currently running ' . PHP_VERSION . '.';
41
	return;
42
}
43
44
try {
45

console.php 1 location

@@ 48-52 (lines=5) @@
45
46
// Show warning if PHP 7.1 is used as Nextcloud is not compatible with PHP 7.1 for now
47
// @see https://github.com/nextcloud/docker-ci/issues/10
48
if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
49
	echo 'This version of Nextcloud is not compatible with PHP 7.1.<br/>';
50
	echo 'You are currently running ' . PHP_VERSION . '.';
51
	return;
52
}
53
54
try {
55
	require_once __DIR__ . '/lib/base.php';