public function removeDot(string $notation, string $separator = '.')
    {
        $args = explode($separator, $notation);

        if (count($args) === 0) {
            return $this;
        }

        $last = array_pop($args);

        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                $pointer[$step] = [];
            }

            $pointer = &$pointer[$step];
        }

        unset($pointer[$last]);

        return $this;
    }
public function removeDot(string $notation, string $separator = '.')
    {
        $args = explode($separator, $notation);

        if (count($args) === 0) {
            return $this;
        }

        $last = array_pop($args);

        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                $pointer[$step] = [];
            }

            $pointer = &$pointer[$step];
        }

        unset($pointer[$last]);

        return $this;
    }
public function removeDot ( string $ notation , string $ separator = '.' ) { $ args = explode ( $ separator , $ notation ) ; if ( count ( $ args ) === 0 ) { return $ this ; } $ last = array_pop ( $ args ) ; $ pointer = & $ this -> data ; foreach ( $ args as $ i => $ step ) { if ( ! isset ( $ pointer [ $ step ] ) || ! is_array ( $ pointer [ $ step ] ) ) { $ pointer [ $ step ] = [ ] ; } $ pointer = & $ pointer [ $ step ] ; } unset ( $ pointer [ $ last ] ) ; return $ this ; }
Removes name space given notation

@param *string $notation  Name space string notation
@param string  $separator If you want to specify a different separator other than dot

@return DotTrait
Removes name space given notation