original_string: public function findOrFail($name)
      {
          $result = $this->find($name);
  
          if (is_null($result)) {
              throw new CollectionItemNotFoundException(sprintf('Collection item "%s" not found', $name));
          }
  
          return $result;
      }
code: public function findOrFail($name)
      {
          $result = $this->find($name);
  
          if (is_null($result)) {
              throw new CollectionItemNotFoundException(sprintf('Collection item "%s" not found', $name));
          }
  
          return $result;
      }
code_tokens: public function findOrFail ( $ name ) { $ result = $ this -> find ( $ name ) ; if ( is_null ( $ result ) ) { throw new CollectionItemNotFoundException ( sprintf ( 'Collection item "%s" not found' , $ name ) ) ; } return $ result ; }
docstring: Find a specific collection item or throw's an exception.
  
  @param string $name
  
  @return mixed
docstring_tokens: Find a specific collection item or throw s an exception .