Reduce code duplication.
Reduce code duplication.

cakephp/cakephp,ndm2/cakephp,ADmad/cakephp,cakephp/cakephp,ndm2/cakephp,CakeDC/cakephp,CakeDC/cakephp,ADmad/cakephp,CakeDC/cakephp,cakephp/cakephp,CakeDC/cakephp,ADmad/cakephp,ndm2/cakephp,cakephp/cakephp,ADmad/cakephp,ndm2/cakephp