Fix broken formatting functionality due to PHP parsing changes, part 10 (PHP templates)