/**
* Handles inline code and code tags.
*
* @param string $text
* @param Tag $tag
*
* @return mixed
*/
public function handleTagCode($text, Tag $tag)
{
if (\preg_match('#\r\n|\r|\n#', $text))
{
return '[CODE]' . $text . '[' . '/CODE]';
}
return '[ICODE]' . $text . '[/ICODE]';
}