private function shouldAuthenticate(ServerRequestInterface $request): bool
    {
        /* If any of the rules in stack return false will not authenticate */
        foreach ($this->rules as $callable) {
            if (false === $callable($request)) {
                return false;
            }
        }
        return true;
    }
private function shouldAuthenticate(ServerRequestInterface $request): bool
    {
        /* If any of the rules in stack return false will not authenticate */
        foreach ($this->rules as $callable) {
            if (false === $callable($request)) {
                return false;
            }
        }
        return true;
    }
private function shouldAuthenticate ( ServerRequestInterface $ request ) : bool { /* If any of the rules in stack return false will not authenticate */ foreach ( $ this -> rules as $ callable ) { if ( false === $ callable ( $ request ) ) { return false ; } } return true ; }
Check if middleware should authenticate.
Check if middleware should authenticate .