Code Duplication    Length = 4-4 lines in 2 locations

src/Entry.php 2 locations

@@ 4-7 (lines=4) @@
1
<?php
2
$input = file_get_contents('php://stdin');
3
spl_autoload_register(function ($class) {
4
    if (is_file($file = __DIR__ . '/' . substr(strtr($class, '\\', '/'), 10) . '.php')) {
5
        require $file;
6
        return true;
7
    }
8
    if (is_file($file = __DIR__ . '/../tests/' . substr(strtr($class, '\\', '/'), 15) . '.php')) {
9
        require $file;
10
        return true;
@@ 8-11 (lines=4) @@
5
        require $file;
6
        return true;
7
    }
8
    if (is_file($file = __DIR__ . '/../tests/' . substr(strtr($class, '\\', '/'), 15) . '.php')) {
9
        require $file;
10
        return true;
11
    }
12
    return false;
13
});
14
$configs = unserialize($input);