protected function computeFormattingElement()
	{
		foreach ($this->branches as $branch)
		{
			foreach ($branch as $element)
			{
				if (!ElementInspector::isFormattingElement($element) && !$this->isFormattingSpan($element))
				{
					$this->isFormattingElement = false;

					return;
				}
			}
		}
		$this->isFormattingElement = (bool) count(array_filter($this->branches));
	}
protected function computeFormattingElement()
	{
		foreach ($this->branches as $branch)
		{
			foreach ($branch as $element)
			{
				if (!ElementInspector::isFormattingElement($element) && !$this->isFormattingSpan($element))
				{
					$this->isFormattingElement = false;

					return;
				}
			}
		}
		$this->isFormattingElement = (bool) count(array_filter($this->branches));
	}
protected function computeFormattingElement ( ) { foreach ( $ this -> branches as $ branch ) { foreach ( $ branch as $ element ) { if ( ! ElementInspector :: isFormattingElement ( $ element ) && ! $ this -> isFormattingSpan ( $ element ) ) { $ this -> isFormattingElement = false ; return ; } } } $ this -> isFormattingElement = ( bool ) count ( array_filter ( $ this -> branches ) ) ; }
Compute the isFormattingElement property

A template is said to be a formatting element if all (non-zero) of its branches are entirely
composed of formatting elements

@return void
Compute the isFormattingElement property