Code Duplication    Length = 6-6 lines in 2 locations

cli.php 1 location

@@ 4-9 (lines=6) @@
1
<?php
2
3
// Requiring composer autoloader (local or global)
4
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
5
	if (file_exists($file) && !defined('COMPOSER_AUTOLOADER')) {
6
		define('COMPOSER_AUTOLOADER', $file);
7
		break;
8
	}
9
}
10
if (!defined('COMPOSER_AUTOLOADER')) {
11
	die(
12
		'You need to set up the project dependencies using the following commands:' . PHP_EOL .

wishlist.php 1 location

@@ 4-9 (lines=6) @@
1
<?php
2
//@deprecated
3
// Requiring composer autoloader (local or global)
4
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
5
	if (file_exists($file) && !defined('COMPOSER_AUTOLOADER')) {
6
		define('COMPOSER_AUTOLOADER', $file);
7
		break;
8
	}
9
}
10
if (!defined('COMPOSER_AUTOLOADER')) {
11
	die(
12
		'You need to set up the project dependencies using the following commands:' . PHP_EOL .