src/Jit/ClassLoader.php
protected function _path($path, $forceDir)
    {
        if ($forceDir) {
            return is_dir($path) ? $path : null;
        }
        if (file_exists($file = $path . '.php')) {
            return $file ;
        }
        if (file_exists($file = $path . '.hh')) {
            return $file;
        }
        if (is_dir($path)) {
            return $path;
        }
    }
protected function _path($path, $forceDir)
    {
        if ($forceDir) {
            return is_dir($path) ? $path : null;
        }
        if (file_exists($file = $path . '.php')) {
            return $file ;
        }
        if (file_exists($file = $path . '.hh')) {
            return $file;
        }
        if (is_dir($path)) {
            return $path;
        }
    }
protected function _path ( $ path , $ forceDir ) { if ( $ forceDir ) { return is_dir ( $ path ) ? $ path : null ; } if ( file_exists ( $ file = $ path . '.php' ) ) { return $ file ; } if ( file_exists ( $ file = $ path . '.hh' ) ) { return $ file ; } if ( is_dir ( $ path ) ) { return $ path ; } }
Build full path according to a root path.

@param  string      $path      A root path.
@param  boolean     $forceDir  Only consider directories paths.
@return string|null            Returns the found path or `null` if not path is found.
Build full path according to a root path .