Skip to content

Commit e6b84fb

Browse files
committed
formatting
1 parent 05365f8 commit e6b84fb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Illuminate/Routing/Router.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -952,10 +952,11 @@ public function getMiddlewareGroups()
952952
* @param array $middleware
953953
* @return $this
954954
*/
955-
public function middlewareGroup($name, array $middlewares)
955+
public function middlewareGroup($name, array $middleware)
956956
{
957-
foreach ($middlewares as $middleware)
958-
$this->pushMiddlewareToGroup($name, $middleware);
957+
foreach ($middleware as $m) {
958+
$this->pushMiddlewareToGroup($name, $m);
959+
}
959960

960961
return $this;
961962
}

0 commit comments

Comments
 (0)