apps code style fixes

fixes:
Expected 1 space after USE keyword; found 0
The closing brace for the class must go on the next line after the body
Expected 1 space after FUNCTION keyword; 0 found
Expected 1 space after comma in function call; 2 found
The closing brace for the class must go on the next line after the body
PHP5.4 array syntax fix