protected function normalizeAbsolutePathAtoms(array $atoms)
    {
        $resultingAtoms = array();
        foreach ($atoms as $atom) {
            if (AbstractPath::PARENT_ATOM === $atom) {
                array_pop($resultingAtoms);
            } elseif (AbstractPath::SELF_ATOM !== $atom) {
                $resultingAtoms[] = $atom;
            }
        }

        return $resultingAtoms;
    }
protected function normalizeAbsolutePathAtoms(array $atoms)
    {
        $resultingAtoms = array();
        foreach ($atoms as $atom) {
            if (AbstractPath::PARENT_ATOM === $atom) {
                array_pop($resultingAtoms);
            } elseif (AbstractPath::SELF_ATOM !== $atom) {
                $resultingAtoms[] = $atom;
            }
        }

        return $resultingAtoms;
    }
protected function normalizeAbsolutePathAtoms ( array $ atoms ) { $ resultingAtoms = array ( ) ; foreach ( $ atoms as $ atom ) { if ( AbstractPath :: PARENT_ATOM === $ atom ) { array_pop ( $ resultingAtoms ) ; } elseif ( AbstractPath :: SELF_ATOM !== $ atom ) { $ resultingAtoms [ ] = $ atom ; } } return $ resultingAtoms ; }
Normalize the supplied path atoms for an absolute path.

@param array<string> $atoms The path atoms to normalize.

@return array<string> The normalized path atoms.
Normalize the supplied path atoms for an absolute path .