protected function captureEndTag()
	{
		if (empty($this->uppercaseText))
		{
			$this->uppercaseText = strtoupper($this->text);
		}
		$match     = '[/' . $this->bbcodeName . $this->bbcodeSuffix . ']';
		$endTagPos = strpos($this->uppercaseText, $match, $this->pos);
		if ($endTagPos === false)
		{
			return;
		}

		return $this->parser->addEndTag($this->getTagName(), $endTagPos, strlen($match));
	}
protected function captureEndTag()
	{
		if (empty($this->uppercaseText))
		{
			$this->uppercaseText = strtoupper($this->text);
		}
		$match     = '[/' . $this->bbcodeName . $this->bbcodeSuffix . ']';
		$endTagPos = strpos($this->uppercaseText, $match, $this->pos);
		if ($endTagPos === false)
		{
			return;
		}

		return $this->parser->addEndTag($this->getTagName(), $endTagPos, strlen($match));
	}
protected function captureEndTag ( ) { if ( empty ( $ this -> uppercaseText ) ) { $ this -> uppercaseText = strtoupper ( $ this -> text ) ; } $ match = '[/' . $ this -> bbcodeName . $ this -> bbcodeSuffix . ']' ; $ endTagPos = strpos ( $ this -> uppercaseText , $ match , $ this -> pos ) ; if ( $ endTagPos === false ) { return ; } return $ this -> parser -> addEndTag ( $ this -> getTagName ( ) , $ endTagPos , strlen ( $ match ) ) ; }
Parse the end tag that matches given BBCode name and suffix starting at current position

@return Tag|null
Parse the end tag that matches given BBCode name and suffix starting at current position