extensions/felixfbecker.php-intellisense-0.0.12/vendor/squizlabs/php_codesniffer/autoload.php
/**
     * Loads a class.
     *
     * This method only loads classes that exist in the PHP_CodeSniffer namespace.
     * All other classes are ignored and loaded by subsequent autoloaders.
     *
     * @param string $class The name of the class to load.
     *
     * @return bool
     */
Loads a class.
This method only loads classes that exist in the PHP_CodeSniffer namespace.
All other classes are ignored and loaded by subsequent autoloaders.

@param string $class The name of the class to load.

@return bool
Loads a class . This method only loads classes that exist in the PHP_CodeSniffer namespace . All other classes are ignored and loaded by subsequent autoloaders . @param string $class The name of the class to load . @return bool
public static function load($class)
    {
        $ds   = DIRECTORY_SEPARATOR;
        $path = null;
        if (substr($class, 0, 16) === 'PHP_CodeSniffer\\') {
            if (substr($class, 0, 22) === 'PHP_CodeSniffer\Tests\\') {
                $isInstalled = !is_dir(__DIR__.$ds.'tests');
                if ($isInstalled === false) {
                    $path = __DIR__.$ds.'tests';
                } else {
                    $path = '@test_dir@'.$ds.'PHP_CodeSniffer'.$ds.'CodeSniffer';
                }
                $path .= $ds.substr(str_replace('\\', $ds, $class), 22).'.php';
            } else {
                $path = __DIR__.$ds.'src'.$ds.substr(str_replace('\\', $ds, $class), 16).'.php';
            }
        }
        if ($path !== null && is_file($path) === true) {
            self::loadFile($path);
            return true;
        }
        return false;
    }
public static function load ( $ class ) { $ ds = DIRECTORY_SEPARATOR ; $ path = null ; if ( substr ( $ class , 0 , 16 ) === 'PHP_CodeSniffer\\' ) { if ( substr ( $ class , 0 , 22 ) === 'PHP_CodeSniffer\Tests\\' ) { $ isInstalled = ! is_dir ( __DIR__ . $ ds . 'tests' ) ; if ( $ isInstalled === false ) { $ path = __DIR__ . $ ds . 'tests' ; } else { $ path = '@test_dir@' . $ ds . 'PHP_CodeSniffer' . $ ds . 'CodeSniffer' ; } $ path .= $ ds . substr ( str_replace ( '\\' , $ ds , $ class ) , 22 ) . '.php' ; } else { $ path = __DIR__ . $ ds . 'src' . $ ds . substr ( str_replace ( '\\' , $ ds , $ class ) , 16 ) . '.php' ; } } if ( $ path !== null && is_file ( $ path ) === true ) { self :: loadFile ( $ path ) ; return true ; } return false ; }
Loads a class.
Loads a class .