private function getMethods($methods)
    {
        $methods = $methods ?? $this->methods;

        if (is_string($methods))
            $methods = (array) $methods;

        return is_array($methods) ? array_map('strtoupper', $methods) : [];
    }
private function getMethods($methods)
    {
        $methods = $methods ?? $this->methods;

        if (is_string($methods))
            $methods = (array) $methods;

        return is_array($methods) ? array_map('strtoupper', $methods) : [];
    }
private function getMethods ( $ methods ) { $ methods = $ methods ?? $ this -> methods ; if ( is_string ( $ methods ) ) $ methods = ( array ) $ methods ; return is_array ( $ methods ) ? array_map ( 'strtoupper' , $ methods ) : [ ] ; }
Get request methods.

@param  string|array|null  $methods

@return array
Get request methods .