Test Failed
Push — 135-map-multiple-wordpress-obj... ( 3634c2...bb35fb )
by Jonathan
12:00
created

ComposerAutoloaderInit349f5103cbe1b0a436d5aa7044a26865   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 57
rs 10
c 0
b 0
f 0
wmc 13
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A loadClassLoader() 0 6 2
B getLoader() 0 45 11
1
<?php
2
3
// autoload_real.php @generated by Composer
4
5
class ComposerAutoloaderInit349f5103cbe1b0a436d5aa7044a26865
6
{
7
    private static $loader;
8
9
    public static function loadClassLoader($class)
0 ignored issues
show
Coding Style introduced by
The function name loadClassLoader is in camel caps, but expected load_class_loader instead as per the coding standard.
Loading history...
10
    {
11
        if ('Composer\Autoload\ClassLoader' === $class) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
12
            require __DIR__ . '/ClassLoader.php';
13
        }
14
    }
15
16
    public static function getLoader()
0 ignored issues
show
Coding Style introduced by
The function name getLoader is in camel caps, but expected get_loader instead as per the coding standard.
Loading history...
17
    {
18
        if (null !== self::$loader) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
19
            return self::$loader;
20
        }
21
22
        spl_autoload_register(array('ComposerAutoloaderInit349f5103cbe1b0a436d5aa7044a26865', 'loadClassLoader'), true, true);
0 ignored issues
show
introduced by
No space after opening parenthesis of array is bad style
Loading history...
introduced by
No space before closing parenthesis of array is bad style
Loading history...
23
        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
        spl_autoload_unregister(array('ComposerAutoloaderInit349f5103cbe1b0a436d5aa7044a26865', 'loadClassLoader'));
0 ignored issues
show
introduced by
No space after opening parenthesis of array is bad style
Loading history...
introduced by
No space before closing parenthesis of array is bad style
Loading history...
25
26
        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
0 ignored issues
show
introduced by
Expected 1 space after "!"; 0 found
Loading history...
introduced by
Expected 1 space before "!"; 0 found
Loading history...
27
        if ($useStaticLoader) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
28
            require_once __DIR__ . '/autoload_static.php';
29
30
            call_user_func(\Composer\Autoload\ComposerStaticInit349f5103cbe1b0a436d5aa7044a26865::getInitializer($loader));
31
        } else {
32
            $map = require __DIR__ . '/autoload_namespaces.php';
33
            foreach ($map as $namespace => $path) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
34
                $loader->set($namespace, $path);
35
            }
36
37
            $map = require __DIR__ . '/autoload_psr4.php';
38
            foreach ($map as $namespace => $path) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
39
                $loader->setPsr4($namespace, $path);
40
            }
41
42
            $classMap = require __DIR__ . '/autoload_classmap.php';
43
            if ($classMap) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
44
                $loader->addClassMap($classMap);
45
            }
46
        }
47
48
        $loader->register(true);
49
50
        if ($useStaticLoader) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
51
            $includeFiles = Composer\Autoload\ComposerStaticInit349f5103cbe1b0a436d5aa7044a26865::$files;
52
        } else {
53
            $includeFiles = require __DIR__ . '/autoload_files.php';
54
        }
55
        foreach ($includeFiles as $fileIdentifier => $file) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
56
            composerRequire349f5103cbe1b0a436d5aa7044a26865($fileIdentifier, $file);
57
        }
58
59
        return $loader;
60
    }
61
}
62
63
function composerRequire349f5103cbe1b0a436d5aa7044a26865($fileIdentifier, $file)
0 ignored issues
show
Coding Style introduced by
The function name composerRequire349f5103cbe1b0a436d5aa7044a26865 is in camel caps, but expected composer_require349f5103cbe1b0a436d5aa7044a26865 instead as per the coding standard.
Loading history...
64
{
65
    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
0 ignored issues
show
introduced by
No space after opening parenthesis is prohibited
Loading history...
introduced by
Array keys should be surrounded by spaces unless they contain a string or an integer.
Loading history...
introduced by
No space before closing parenthesis is prohibited
Loading history...
66
        require $file;
67
68
        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
0 ignored issues
show
introduced by
Array keys should be surrounded by spaces unless they contain a string or an integer.
Loading history...
69
    }
70
}
71