protected function serializeBranch(array $branch)
	{
		// Optimize away "else{}" completely
		if ($branch['structure'] === 'else'
		 && $branch['body']      === ''
		 && empty($branch['head'])
		 && empty($branch['tail']))
		{
			return '';
		}

		return $branch['structure'] . '{' . $this->serializeOutput($branch['head']) . $branch['body'] . $this->serializeOutput(array_reverse($branch['tail'])) . '}';
	}
protected function serializeBranch(array $branch)
	{
		// Optimize away "else{}" completely
		if ($branch['structure'] === 'else'
		 && $branch['body']      === ''
		 && empty($branch['head'])
		 && empty($branch['tail']))
		{
			return '';
		}

		return $branch['structure'] . '{' . $this->serializeOutput($branch['head']) . $branch['body'] . $this->serializeOutput(array_reverse($branch['tail'])) . '}';
	}
protected function serializeBranch ( array $ branch ) { // Optimize away "else{}" completely if ( $ branch [ 'structure' ] === 'else' && $ branch [ 'body' ] === '' && empty ( $ branch [ 'head' ] ) && empty ( $ branch [ 'tail' ] ) ) { return '' ; } return $ branch [ 'structure' ] . '{' . $ this -> serializeOutput ( $ branch [ 'head' ] ) . $ branch [ 'body' ] . $ this -> serializeOutput ( array_reverse ( $ branch [ 'tail' ] ) ) . '}' ; }
Serialize a recorded branch back to PHP

@param  array  $branch
@return string
Serialize a recorded branch back to PHP