package updates

This commit is contained in:
2018-12-19 23:27:43 -06:00
parent aa1da4d4fb
commit 1ffd21369f
1181 changed files with 51194 additions and 11046 deletions
@@ -189,7 +189,7 @@ class RouteCollection implements Countable, IteratorAggregate
*/
protected function matchAgainstRoutes(array $routes, $request, $includingMethod = true)
{
list($fallbacks, $routes) = collect($routes)->partition(function ($route) {
[$fallbacks, $routes] = collect($routes)->partition(function ($route) {
return $route->isFallback;
});
@@ -233,7 +233,7 @@ class RouteCollection implements Countable, IteratorAggregate
*/
protected function getRouteForMethods($request, array $methods)
{
if ($request->method() == 'OPTIONS') {
if ($request->method() === 'OPTIONS') {
return (new Route('OPTIONS', $request->path(), function () use ($methods) {
return new Response('', 200, ['Allow' => implode(',', $methods)]);
}))->bind($request);