ComposerAutoloaderInit6352cb8ef79af2c7649e83bf921c4678   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 23
dl 0
loc 45
rs 10
c 1
b 0
f 0
wmc 6

2 Methods

Rating   Name   Duplication   Size   Complexity  
A loadClassLoader() 0 4 2
A getLoader() 0 31 4
1
<?php
2
3
// autoload_real.php @generated by Composer
4
5
class ComposerAutoloaderInit6352cb8ef79af2c7649e83bf921c4678
6
{
7
    private static $loader;
8
9
    public static function loadClassLoader($class)
10
    {
11
        if ('Composer\Autoload\ClassLoader' === $class) {
12
            require __DIR__ . '/ClassLoader.php';
13
        }
14
    }
15
16
    /**
17
     * @return \Composer\Autoload\ClassLoader
18
     */
19
    public static function getLoader()
20
    {
21
        if (null !== self::$loader) {
22
            return self::$loader;
23
        }
24
25
        require __DIR__ . '/platform_check.php';
26
27
        spl_autoload_register(array('ComposerAutoloaderInit6352cb8ef79af2c7649e83bf921c4678', 'loadClassLoader'), true, true);
28
        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
        spl_autoload_unregister(array('ComposerAutoloaderInit6352cb8ef79af2c7649e83bf921c4678', 'loadClassLoader'));
30
31
        require __DIR__ . '/autoload_static.php';
32
        call_user_func(\Composer\Autoload\ComposerStaticInit6352cb8ef79af2c7649e83bf921c4678::getInitializer($loader));
33
34
        $loader->setClassMapAuthoritative(true);
35
        $loader->register(true);
36
37
        $filesToLoad = \Composer\Autoload\ComposerStaticInit6352cb8ef79af2c7649e83bf921c4678::$files;
38
        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
39
            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
40
                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
41
42
                require $file;
43
            }
44
        }, null, null);
45
        foreach ($filesToLoad as $fileIdentifier => $file) {
46
            $requireFile($fileIdentifier, $file);
47
        }
48
49
        return $loader;
50
    }
51
}
52