josegonzalez / rad-cakephp-2

Issue Tracker for the "Rapid Application Development with CakePHP 2" BOOK
http://josediazgonzalez.com/cakephp-book/
3 stars 1 forks source link

request-is() #3

Closed dereuromark closed 9 years ago

dereuromark commented 10 years ago

The

if ($request->is('post') || $request->is('put')) {

can be simplified to

if ($request->is(['post', 'put'])) {

since cakephp2.4

josegonzalez commented 10 years ago

Closed by f90273f6dbebaf9d5f3f1f31a73c4a6d638ba9be.