You seem to be using no real coding standard.
It seems you try to use the 2.x way, which now I call psr2r and also has a very powerful sniffer.
You might want to either use that one (to avoid the current code mess you got in your project) - or you could switch to the official cakephp cs (also backed up by a sniffer tool)
Either way you should also enforce it then as part of the travis process.
See my plugins for example for psr2r.
You seem to be using no real coding standard. It seems you try to use the 2.x way, which now I call psr2r and also has a very powerful sniffer. You might want to either use that one (to avoid the current code mess you got in your project) - or you could switch to the official cakephp cs (also backed up by a sniffer tool)
Either way you should also enforce it then as part of the travis process. See my plugins for example for psr2r.