original_string: public function mapsForm($index)
      {
          if (!isset($this->mapsForm[$index])) {
              throw new OutOfBoundsException(sprintf('The index %s is not within the violation path', $index));
          }
  
          return $this->mapsForm[$index];
      }
code: public function mapsForm($index)
      {
          if (!isset($this->mapsForm[$index])) {
              throw new OutOfBoundsException(sprintf('The index %s is not within the violation path', $index));
          }
  
          return $this->mapsForm[$index];
      }
code_tokens: public function mapsForm ( $ index ) { if ( ! isset ( $ this -> mapsForm [ $ index ] ) ) { throw new OutOfBoundsException ( sprintf ( 'The index %s is not within the violation path' , $ index ) ) ; } return $ this -> mapsForm [ $ index ] ; }
docstring: Returns whether an element maps directly to a form.
  
  Consider the following violation path:
  
  children[address].children[office].data.street
  
  In this example, "address" and "office" map to forms, while
  "street does not.
  
  @param int $index The element index
  
  @return bool Whether the element maps to a form
  
  @throws OutOfBoundsException if the offset is invalid
docstring_tokens: Returns whether an element maps directly to a form .