public static function getFilePath($path) {
        if (empty($path)) {
            return false;
        }

        if (is_file($path)) {
            return $path;
        }

        if (is_file($result = self::mapPath($path))) {
            return $result;
        }

        if (($result = self::appendPhpExtension($path)) !== false) {
            return self::getFilePath($result);
        }

        return false;
    }
public static function getFilePath($path) {
        if (empty($path)) {
            return false;
        }

        if (is_file($path)) {
            return $path;
        }

        if (is_file($result = self::mapPath($path))) {
            return $result;
        }

        if (($result = self::appendPhpExtension($path)) !== false) {
            return self::getFilePath($result);
        }

        return false;
    }
public static function getFilePath ( $ path ) { if ( empty ( $ path ) ) { return false ; } if ( is_file ( $ path ) ) { return $ path ; } if ( is_file ( $ result = self :: mapPath ( $ path ) ) ) { return $ result ; } if ( ( $ result = self :: appendPhpExtension ( $ path ) ) !== false ) { return self :: getFilePath ( $ result ) ; } return false ; }
Returns the physical path to an existing file.
If no path is found, returns FALSE.

@param string $path Relative or physical path.
If no file is found on the specified path, an attempt will be made to add the extension .php to the specified path.

@return string|bool
Returns the physical path to an existing file . If no path is found returns FALSE .