cakephp/cakephp — pull request #1656 by dereuromark (2013-09-18 16:37:13+00:00)
Title: Fix casing of validation rules in bake

This has been bothering me for a quite a while now.. I always had to manually rename the baked validation rules, as they did not match the actual method names.

Bake would simply lowercase all validation rules, and while this works due to PHP case insensitivity, this gets quite messy/unreadable at some point

'content' => array(
'notempty' => array(
'rule' => array('notempty'),
...
),
),

Same for maxLength, inList, ...
It is also a good practice to always name your called rules the same than their actual name.
Or bad casings like `nOtEmpTY` etc would also be valid and acceptable here :)

This bug-fix resolves this unnecessary lower-casing:

'content' => array(
'notEmpty' => array(
'rule' => array('notEmpty'),
...
),
),