Improve coding style for view helper