protected function parseLooseArgumentOrder(array $args)
    {
        // Get the arguments in a very loose format
        $callback = array_pop($args);
        $path = array_pop($args);
        $method = array_pop($args);

        // Return a named parameter array
        return array(
            'method' => $method,
            'path' => $path,
            'callback' => $callback,
        );
    }
protected function parseLooseArgumentOrder(array $args)
    {
        // Get the arguments in a very loose format
        $callback = array_pop($args);
        $path = array_pop($args);
        $method = array_pop($args);

        // Return a named parameter array
        return array(
            'method' => $method,
            'path' => $path,
            'callback' => $callback,
        );
    }
protected function parseLooseArgumentOrder ( array $ args ) { // Get the arguments in a very loose format $ callback = array_pop ( $ args ) ; $ path = array_pop ( $ args ) ; $ method = array_pop ( $ args ) ; // Return a named parameter array return array ( 'method' => $ method , 'path' => $ path , 'callback' => $ callback , ) ; }
Parse our extremely loose argument order of our "respond" method and its aliases

This method takes its arguments in a loose format and order.
The method signature is simply there for documentation purposes, but allows
for the minimum of a callback to be passed in its current configuration.

@see Klein::respond()
@param mixed $args               An argument array. Hint: This works well when passing "func_get_args()"
@named string | array $method   HTTP Method to match
@named string $path             Route URI path to match
@named callable $callback       Callable callback method to execute on route match
@return array                    A named parameter array containing the keys: 'method', 'path', and 'callback'
Parse our extremely loose argument order of our respond method and its aliases