protected function optimizeLeadingText()
	{
		$strings = $this->getTextContent('firstChild');
		if (empty($strings))
		{
			return;
		}

		$len = $this->getPrefixLength($strings);
		if ($len)
		{
			$this->adjustTextNodes('firstChild', $len);
			$this->choose->parentNode->insertBefore(
				$this->createText(substr($strings[0], 0, $len)),
				$this->choose
			);
		}
	}
protected function optimizeLeadingText()
	{
		$strings = $this->getTextContent('firstChild');
		if (empty($strings))
		{
			return;
		}

		$len = $this->getPrefixLength($strings);
		if ($len)
		{
			$this->adjustTextNodes('firstChild', $len);
			$this->choose->parentNode->insertBefore(
				$this->createText(substr($strings[0], 0, $len)),
				$this->choose
			);
		}
	}
protected function optimizeLeadingText ( ) { $ strings = $ this -> getTextContent ( 'firstChild' ) ; if ( empty ( $ strings ) ) { return ; } $ len = $ this -> getPrefixLength ( $ strings ) ; if ( $ len ) { $ this -> adjustTextNodes ( 'firstChild' , $ len ) ; $ this -> choose -> parentNode -> insertBefore ( $ this -> createText ( substr ( $ strings [ 0 ] , 0 , $ len ) ) , $ this -> choose ) ; } }
Move common leading text outside of current choose

@return void
Move common leading text outside of current choose