Fixed Coding Standard

Fixed all the code to be compatible with the Coding Standard of CakePHP.