<commit_before><?php
declare(strict_types=1);
namespace Viserio\Routing;

use Closure;
use Interop\Http\Middleware\DelegateInterface;
use Psr\Http\Message\RequestInterface;
use Viserio\Pipeline\Pipeline as BasePipeline;

class Pipeline extends BasePipeline
{
    /**
     * The method to call on each stage.
     *
     * @var string
     */
    protected $method = 'process';

    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function getSlice(): Closure
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                $slice = parent::getSlice();

                $callable = $slice($this->getDelegateMiddleware($stack), $pipe);

                return $callable($passable);
            };
        };
    }

    /**
     * Private delegate callable middleware for the pipe.
     *
     * @param callable $middleware
     *
     * @return object
     */
    private function getDelegateMiddleware(callable $middleware)
    {
        return new class($middleware) implements DelegateInterface {
            /**
             * @var callable
             */
            private $middleware;

            /**
             * Create a new delegate callable middleware instance.
             *
             * @param callable $middleware
             */
            public function __construct(callable $middleware)
            {
                $this->middleware = $middleware;
            }

            /**
             * {@inheritdoc}
             */<commit_msg>Scrutinizer Auto-Fixes<commit_after><?php
declare(strict_types=1);
namespace Viserio\Routing;

use Closure;
use Interop\Http\Middleware\DelegateInterface;
use Psr\Http\Message\RequestInterface;
use Viserio\Pipeline\Pipeline as BasePipeline;

class Pipeline extends BasePipeline
{
    /**
     * The method to call on each stage.
     *
     * @var string
     */
    protected $method = 'process';

    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function getSlice(): Closure
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                $slice = parent::getSlice();

                $callable = $slice($this->getDelegateMiddleware($stack), $pipe);

                return $callable($passable);
            };
        };
    }

    /**
     * Private delegate callable middleware for the pipe.
     *
     * @param callable $middleware
     *
     * @return anonymous//src/Viserio/Routing/Pipeline.php@return object
     */
    private function getDelegateMiddleware(callable $middleware)
    {
        return new class($middleware) implements DelegateInterface {
            /**
             * @var callable
             */
            private $middleware;

            /**
             * Create a new delegate callable middleware instance.
             *
             * @param callable $middleware
             */
            public function __construct(callable $middleware)
            {
                $this->middleware = $middleware;
            }

            /**
             * {@inheritdoc}
             */
{'fraction_non_alphanumeric': 0.10159118727050184, 'fraction_numerical': 0.0006119951040391676, 'mean_word_length': 1.7470588235294118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5915643', 'n_tokens_mistral': 864, 'n_tokens_neox': 839, 'n_words': 214}