original_string: public function remove($offset, $length = 1)
      {
          if (!isset($this->elements[$offset])) {
              throw new OutOfBoundsException(sprintf('The offset %s is not within the property path', $offset));
          }
  
          $this->resize($offset, $length, 0);
      }
code: public function remove($offset, $length = 1)
      {
          if (!isset($this->elements[$offset])) {
              throw new OutOfBoundsException(sprintf('The offset %s is not within the property path', $offset));
          }
  
          $this->resize($offset, $length, 0);
      }
code_tokens: public function remove ( $ offset , $ length = 1 ) { if ( ! isset ( $ this -> elements [ $ offset ] ) ) { throw new OutOfBoundsException ( sprintf ( 'The offset %s is not within the property path' , $ offset ) ) ; } $ this -> resize ( $ offset , $ length , 0 ) ; }
docstring: Removes elements from the current path.
  
  @param int $offset The offset at which to remove
  @param int $length The length of the removed piece
  
  @throws OutOfBoundsException if offset is invalid
docstring_tokens: Removes elements from the current path .