src/Charcoal/Admin/Support/BaseUrlTrait.php
protected function isRelativeUri($uri)
    {
        if ($uri && !parse_url($uri, PHP_URL_SCHEME)) {
            if (!in_array($uri[0], [ '/', '#', '?' ])) {
                return true;
            }
        }

        return false;
    }
protected function isRelativeUri($uri)
    {
        if ($uri && !parse_url($uri, PHP_URL_SCHEME)) {
            if (!in_array($uri[0], [ '/', '#', '?' ])) {
                return true;
            }
        }

        return false;
    }
protected function isRelativeUri ( $ uri ) { if ( $ uri && ! parse_url ( $ uri , PHP_URL_SCHEME ) ) { if ( ! in_array ( $ uri [ 0 ] , [ '/' , '#' , '?' ] ) ) { return true ; } } return false ; }
Determine if the given URI is relative.

@param  string $uri A URI path to test.
@return boolean
Determine if the given URI is relative .