src/Provider/AbstractProvider.php
public function getHeaders($token = null)
    {
        if ($token) {
            return array_merge(
                $this->getDefaultHeaders(),
                $this->getAuthorizationHeaders($token)
            );
        }

        return $this->getDefaultHeaders();
    }
public function getHeaders($token = null)
    {
        if ($token) {
            return array_merge(
                $this->getDefaultHeaders(),
                $this->getAuthorizationHeaders($token)
            );
        }

        return $this->getDefaultHeaders();
    }
public function getHeaders ( $ token = null ) { if ( $ token ) { return array_merge ( $ this -> getDefaultHeaders ( ) , $ this -> getAuthorizationHeaders ( $ token ) ) ; } return $ this -> getDefaultHeaders ( ) ; }
Returns all headers used by this provider for a request.

The request will be authenticated if an access token is provided.

@param  mixed|null $token object or string
@return array
Returns all headers used by this provider for a request .