Code Duplication    Length = 6-11 lines in 2 locations

src/bootstrap.php 1 location

@@ 44-54 (lines=11) @@
41
        }
42
    }
43
44
    if (file_exists(CORE_DIR))
45
    {
46
        //Autoload de módulos
47
        $finder = new Finder();
48
        $finder->files()->in(CORE_DIR)->name('autoload.php');
49
        /* @var $file SplFileInfo */
50
        foreach ($finder as $file) {
51
            $path = $file->getRealPath();
52
            include_once($path);
53
        }
54
    }
55

src/command/PSFSConsole.php 1 location

@@ 37-42 (lines=6) @@
34
    foreach ($commands as $com) include_once($com->getRealPath());
35
36
    //Hidratamos con los comandos de los módulos
37
    if (file_exists(CORE_DIR))
38
    {
39
        $commands = new Finder();
40
        $commands->in(CORE_DIR)->path("Command")->name("*.php");
41
        foreach ($commands as $com) include_once($com->getRealPath());
42
    }
43
44
    $console->run();
45