View file phpBB3/vendor/s9e/text-formatter/src/Plugins/Emoticons/Parser.php

File size: 508B
<?php

/**
* @package   s9e\TextFormatter
* @copyright Copyright (c) 2010-2022 The s9e authors
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\TextFormatter\Plugins\Emoticons;

use s9e\TextFormatter\Plugins\ParserBase;

class Parser extends ParserBase
{
	/**
	* {@inheritdoc}
	*/
	public function parse($text, array $matches)
	{
		foreach ($matches as $m)
		{
			$this->parser->addSelfClosingTag($this->config['tagName'], $m[0][1], strlen($m[0][0]));
		}
	}
}