public function shortenPath()
    {
        if ($this->scheme !== 'file'
            || !(count($this->path) === 1 && preg_match(static::NORMALIZED_WINDOWS_DRIVE_LETTER, $this->path[0]) === 1)) {
            array_pop($this->path);
        }
    }
public function shortenPath()
    {
        if ($this->scheme !== 'file'
            || !(count($this->path) === 1 && preg_match(static::NORMALIZED_WINDOWS_DRIVE_LETTER, $this->path[0]) === 1)) {
            array_pop($this->path);
        }
    }
public function shortenPath ( ) { if ( $ this -> scheme !== 'file' || ! ( count ( $ this -> path ) === 1 && preg_match ( static :: NORMALIZED_WINDOWS_DRIVE_LETTER , $ this -> path [ 0 ] ) === 1 ) ) { array_pop ( $ this -> path ) ; } }
Shortens a path.
@link https://url.spec.whatwg.org/#shorten-a-urls-path URL Standard
Shortens a path .