PSR2 compliant + buf fix when page template