<commit_before><?php

namespace Orchestra\Support\Providers\Traits;

use Illuminate\Routing\Router;
use Illuminate\Contracts\Http\Kernel;

trait MiddlewareProvider
{
    /**
     * Register route middleware.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @param  \Illuminate\Contracts\Http\Kernel  $kernel
     *
     * @return void
     */
    protected function registerRouteMiddleware(Router $router, Kernel $kernel)
    {
        foreach ((array) $this->middleware as $middleware) {
            $kernel->pushMiddleware($middleware);
        }

        foreach ((array) $this->middlewareGroups as $key => $middleware) {
            $router->middlewareGroup($key, $middleware);
        }

        foreach ((array) $this->routeMiddleware as $key => $middleware) {
            $router->middleware($key, $middleware);
        }
    }
}
<commit_msg>Update method name.<commit_after><?php

namespace Orchestra\Support\Providers\Traits;

use Illuminate\Routing\Router;
use Illuminate\Contracts\Http\Kernel;

trait MiddlewareProvider
{
    /**
     * Register route middleware.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @param  \Illuminate\Contracts\Http\Kernel  $kernel
     *
     * @return void
     */
    protected function registerRouteMiddleware(Router $router, Kernel $kernel)
    {
        foreach ((array) $this->middleware as $middleware) {
            $kernel->pushMiddleware($middleware);
        }

        foreach ((array) $this->middlewareGroups as $key => $middleware) {
            $router->middlewareGroup($key, $middleware);
        }

        foreach ((array) $this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
}

{'fraction_non_alphanumeric': 0.12693854106835153, 'fraction_numerical': 0.0, 'mean_word_length': 2.6596638655462184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '402962', 'n_tokens_mistral': 491, 'n_tokens_neox': 517, 'n_words': 98}