[HttpFoundation] simplified code

This commit is contained in:
Fabien Potencier 2011-06-14 16:07:18 +02:00
parent b763d667f5
commit 24778553cd

View File

@ -70,13 +70,7 @@ class RequestMatcher implements RequestMatcherInterface
*/
public function matchMethod($method)
{
$this->methods = array_map(
function ($m)
{
return strtolower($m);
},
is_array($method) ? $method : array($method)
);
$this->methods = array_map('strtolower', is_array($method) ? $method : array($method));
}
/**