Updated controller coding style to PSR-2