Code Style Review in Controllers

updated as per new joomla version.