ingeniasoftware / luthier-ci

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework
https://luthier.ingenia.me/ci/en/
MIT License
150 stars 38 forks source link

Is this typo? (group route middleware) #41

Open banqhsia opened 5 years ago

banqhsia commented 5 years ago

At RouteBuilder.php:154

    if(isset($attributes['middleware']))
    {
        if(is_string($attributes['middleware']))
        {
            $attributes['middleware'] = [ $attributes['middleware'] ];
        }
        else
        {
            if(!is_array($attributes['middleware']))
            {
                show_error('Route group middleware must be an array o a string');
            }
        }
        self::$context['middleware']['route'][] = $attributes['middleware'];
    }

Is the message Route group middleware must be an array o a string a typo? Should be "or" not "o"?

andersonsalas commented 5 years ago

Howdy @banqhsia

Yes, this is a typo 😓