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

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