Conditions | 3 |
Paths | 3 |
Total Lines | 23 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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('ComposerAutoloaderInite51ffc086cc73a0e04fdd1790cb59b90', 'loadClassLoader'), true, true); |
||
28 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
||
|
|||
29 | spl_autoload_unregister(array('ComposerAutoloaderInite51ffc086cc73a0e04fdd1790cb59b90', 'loadClassLoader')); |
||
30 | |||
31 | require __DIR__ . '/autoload_static.php'; |
||
32 | call_user_func(\Composer\Autoload\ComposerStaticInite51ffc086cc73a0e04fdd1790cb59b90::getInitializer($loader)); |
||
33 | |||
34 | $loader->register(true); |
||
35 | |||
36 | $includeFiles = \Composer\Autoload\ComposerStaticInite51ffc086cc73a0e04fdd1790cb59b90::$files; |
||
37 | foreach ($includeFiles as $fileIdentifier => $file) { |
||
38 | composerRequiree51ffc086cc73a0e04fdd1790cb59b90($fileIdentifier, $file); |
||
39 | } |
||
40 | |||
41 | return $loader; |
||
42 | } |
||
58 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.