ZF-10121: Zend_Tool breaks code if last line of action is }

Description

If you have an existing controller with code and run ZF create action The Code gets updated as expected. Unfortunately the existing actions that have a last line of code within them as a } have the } removed.

Comments

Duplicates of ZF-9501.

duplicates don't need fix versions