extensions/felixfbecker.php-intellisense-0.0.12/vendor/squizlabs/php_codesniffer/autoload.php
/**
     * Includes a file and tracks what class or interface was loaded as a result.
     *
     * @param string $path The path of the file to load.
     *
     * @return string The fully qualified name of the class in the loaded file.
     */
Includes a file and tracks what class or interface was loaded as a result.
@param string $path The path of the file to load.

@return string The fully qualified name of the class in the loaded file.
Includes a file and tracks what class or interface was loaded as a result . @param string $path The path of the file to load . @return string The fully qualified name of the class in the loaded file .
public static function loadFile($path)
    {
        if (isset(self::$loadedClasses[$path]) === true) {
            return self::$loadedClasses[$path];
        }
        $classes    = get_declared_classes();
        $interfaces = get_declared_interfaces();
        include $path;
        $className  = null;
        $newClasses = array_diff(get_declared_classes(), $classes);
        foreach ($newClasses as $name) {
            if (isset(self::$loadedFiles[$name]) === false) {
                $className = $name;
                break;
            }
        }
        if ($className === null) {
            $newClasses = array_diff(get_declared_interfaces(), $classes);
            foreach ($newClasses as $name) {
                if (isset(self::$loadedFiles[$name]) === false) {
                    $className = $name;
                    break;
                }
            }
        }
        self::$loadedClasses[$path]    = $className;
        self::$loadedFiles[$className] = $path;
        return self::$loadedClasses[$path];
    }
public static function loadFile ( $ path ) { if ( isset ( self :: $ loadedClasses [ $ path ] ) === true ) { return self :: $ loadedClasses [ $ path ] ; } $ classes = get_declared_classes ( ) ; $ interfaces = get_declared_interfaces ( ) ; include $ path ; $ className = null ; $ newClasses = array_diff ( get_declared_classes ( ) , $ classes ) ; foreach ( $ newClasses as $ name ) { if ( isset ( self :: $ loadedFiles [ $ name ] ) === false ) { $ className = $ name ; break ; } } if ( $ className === null ) { $ newClasses = array_diff ( get_declared_interfaces ( ) , $ classes ) ; foreach ( $ newClasses as $ name ) { if ( isset ( self :: $ loadedFiles [ $ name ] ) === false ) { $ className = $ name ; break ; } } } self :: $ loadedClasses [ $ path ] = $ className ; self :: $ loadedFiles [ $ className ] = $ path ; return self :: $ loadedClasses [ $ path ] ; }
Includes a file and tracks what class or interface was loaded as a result.
Includes a file and tracks what class or interface was loaded as a result .