/**
* Provides OAuth2 authentication for the HTTP resource.
- *
+ *
* @link https://packagist.org/packages/sainsburys/guzzle-oauth2-plugin
*
* @Authentication(
public function getAuthenticationOptions() {
$handlerStack = HandlerStack::create();
$client = new Client([
- 'handler'=> $handlerStack,
+ 'handler' => $handlerStack,
'base_uri' => $this->configuration['base_uri'],
'auth' => 'oauth2',
]);
break;
default:
throw new MigrateException("Unrecognized grant_type {$this->configuration['grant_type']}.");
- break;
+ break;
}
$middleware = new OAuthMiddleware($client, $grant_type);