Thanks Mark, I forgot about cakePHP conventions because I use spaces for tab, I'll check it an fix it.
Also I'll check about CS violation in the code. Please review and let me know if you have more comments.