Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / migrate_plus / src / Plugin / migrate_plus / authentication / OAuth2.php
index 7415e72d1db08bcbfbbef970c5a276ef8f165002..116314d6bcaa2c7e6da502211c8ab4b2c695b5cf 100755 (executable)
@@ -16,7 +16,7 @@ use Sainsburys\Guzzle\Oauth2\Middleware\OAuthMiddleware;
 
 /**
  * Provides OAuth2 authentication for the HTTP resource.
- * 
+ *
  * @link https://packagist.org/packages/sainsburys/guzzle-oauth2-plugin
  *
  * @Authentication(
@@ -32,7 +32,7 @@ class OAuth2 extends AuthenticationPluginBase implements ContainerFactoryPluginI
   public function getAuthenticationOptions() {
     $handlerStack = HandlerStack::create();
     $client = new Client([
-      'handler'=> $handlerStack,
+      'handler' => $handlerStack,
       'base_uri' => $this->configuration['base_uri'],
       'auth' => 'oauth2',
     ]);
@@ -55,7 +55,7 @@ class OAuth2 extends AuthenticationPluginBase implements ContainerFactoryPluginI
         break;
       default:
         throw new MigrateException("Unrecognized grant_type {$this->configuration['grant_type']}.");
-        break;
+      break;
     }
     $middleware = new OAuthMiddleware($client, $grant_type);