protected function createChild(Tag $tag)
	{
		$tagConfig = $this->tagsConfig[$tag->getName()];
		if (isset($tagConfig['rules']['createChild']))
		{
			$priority = -1000;
			$tagPos   = $this->pos + strspn($this->text, " \n\r\t", $this->pos);
			foreach ($tagConfig['rules']['createChild'] as $tagName)
			{
				$this->addStartTag($tagName, $tagPos, 0, ++$priority);
			}
		}
	}
protected function createChild(Tag $tag)
	{
		$tagConfig = $this->tagsConfig[$tag->getName()];
		if (isset($tagConfig['rules']['createChild']))
		{
			$priority = -1000;
			$tagPos   = $this->pos + strspn($this->text, " \n\r\t", $this->pos);
			foreach ($tagConfig['rules']['createChild'] as $tagName)
			{
				$this->addStartTag($tagName, $tagPos, 0, ++$priority);
			}
		}
	}
protected function createChild ( Tag $ tag ) { $ tagConfig = $ this -> tagsConfig [ $ tag -> getName ( ) ] ; if ( isset ( $ tagConfig [ 'rules' ] [ 'createChild' ] ) ) { $ priority = - 1000 ; $ tagPos = $ this -> pos + strspn ( $ this -> text , " \n\r\t" , $ this -> pos ) ; foreach ( $ tagConfig [ 'rules' ] [ 'createChild' ] as $ tagName ) { $ this -> addStartTag ( $ tagName , $ tagPos , 0 , ++ $ priority ) ; } } }
Apply the createChild rules associated with given tag

@param  Tag  $tag Tag
@return void
Apply the createChild rules associated with given tag