original_string: protected function validateAndResolveId($id)
      {
          $this->validateId($id);
          $id = $this->resolveId($id);
          if (!isset($this->items[$id])) {
              throw new Exception\ItemNotFoundException(sprintf('The "%s" item does not exist.', $id));
          }
  
          return $id;
      }
code: protected function validateAndResolveId($id)
      {
          $this->validateId($id);
          $id = $this->resolveId($id);
          if (!isset($this->items[$id])) {
              throw new Exception\ItemNotFoundException(sprintf('The "%s" item does not exist.', $id));
          }
  
          return $id;
      }
code_tokens: protected function validateAndResolveId ( $ id ) { $ this -> validateId ( $ id ) ; $ id = $ this -> resolveId ( $ id ) ; if ( ! isset ( $ this -> items [ $ id ] ) ) { throw new Exception \ ItemNotFoundException ( sprintf ( 'The "%s" item does not exist.' , $ id ) ) ; } return $ id ; }
docstring: Checks the layout item id for empty and returns real id
  Also this method raises an exception if the layout item does not exist
  
  @param string $id The layout item id
  
  @return string The resolved item id
  
  @throws Exception\InvalidArgumentException if the id is empty
  @throws Exception\ItemNotFoundException if the layout item does not exist
docstring_tokens: Checks the layout item id for empty and returns real id Also this method raises an exception if the layout item does not exist