private static function resolveParent(array & $parts, $absolute)
    {
        $count = count($parts);

        if ($absolute || ($count > 0 && $parts[$count - 1] !== '..')) {
            array_pop($parts);
            return;
        }

        $parts[] = '..';
    }
private static function resolveParent(array & $parts, $absolute)
    {
        $count = count($parts);

        if ($absolute || ($count > 0 && $parts[$count - 1] !== '..')) {
            array_pop($parts);
            return;
        }

        $parts[] = '..';
    }
private static function resolveParent ( array & $ parts , $ absolute ) { $ count = count ( $ parts ) ; if ( $ absolute || ( $ count > 0 && $ parts [ $ count - 1 ] !== '..' ) ) { array_pop ( $ parts ) ; return ; } $ parts [ ] = '..' ; }
Resolves the relative parent directory for the path.
@param string[] $parts Path parts to modify
@param bool $absolute True if dealing with absolute path, false if not
Resolves the relative parent directory for the path .