[CODE STYLE] Several issues in com_categories and JFormFieldHelpsite
Fix #2928, #2929, #2930, #2931, #2932, #2933, #2934, #2935, #2936, #2937, #2938, #2939, #2940, #2941, #2942