src/Grant/AbstractGrant.php
public function prepareRequestParameters(array $defaults, array $options)
    {
        $defaults['grant_type'] = $this->getName();

        $required = $this->getRequiredRequestParameters();
        $provided = array_merge($defaults, $options);

        $this->checkRequiredParameters($required, $provided);

        return $provided;
    }
public function prepareRequestParameters(array $defaults, array $options)
    {
        $defaults['grant_type'] = $this->getName();

        $required = $this->getRequiredRequestParameters();
        $provided = array_merge($defaults, $options);

        $this->checkRequiredParameters($required, $provided);

        return $provided;
    }
public function prepareRequestParameters ( array $ defaults , array $ options ) { $ defaults [ 'grant_type' ] = $ this -> getName ( ) ; $ required = $ this -> getRequiredRequestParameters ( ) ; $ provided = array_merge ( $ defaults , $ options ) ; $ this -> checkRequiredParameters ( $ required , $ provided ) ; return $ provided ; }
Prepares an access token request's parameters by checking that all
required parameters are set, then merging with any given defaults.

@param  array $defaults
@param  array $options
@return array
Prepares an access token request s parameters by checking that all required parameters are set then merging with any given defaults .