Explorar el Código

[HttpFoundation] simplified code

Fabien Potencier hace 14 años
padre
commit
24778553cd
Se han modificado 1 ficheros con 1 adiciones y 7 borrados
  1. 1 7
      src/Symfony/Component/HttpFoundation/RequestMatcher.php

+ 1 - 7
src/Symfony/Component/HttpFoundation/RequestMatcher.php

@@ -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));
     }
 
     /**