original_string: public function endsWith($type)
  	{
  		if(empty($this->tokens))
  		{
  			return false;
  		}
  		
  		return $this->tokens[count($this->tokens) - 1]->is($type);
  	}
code: public function endsWith($type)
  	{
  		if(empty($this->tokens))
  		{
  			return false;
  		}
  		
  		return $this->tokens[count($this->tokens) - 1]->is($type);
  	}
code_tokens: public function endsWith ( $ type ) { if ( empty ( $ this -> tokens ) ) { return false ; } return $ this -> tokens [ count ( $ this -> tokens ) - 1 ] -> is ( $ type ) ; }
docstring: Check if the sequence ends with a token of the given token type.
  
  @param integer $type
  @return boolean
docstring_tokens: Check if the sequence ends with a token of the given token type .