From c7400486df70543cb3ec19ddaabab02a3853595f Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 8 Oct 2014 09:43:53 -0400 Subject: [PATCH] Fix formatting --- .../EloquentOAuthServiceProvider.php | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/AdamWathan/EloquentOAuth/EloquentOAuthServiceProvider.php b/src/AdamWathan/EloquentOAuth/EloquentOAuthServiceProvider.php index d21316b..fb2e132 100644 --- a/src/AdamWathan/EloquentOAuth/EloquentOAuthServiceProvider.php +++ b/src/AdamWathan/EloquentOAuth/EloquentOAuthServiceProvider.php @@ -11,7 +11,7 @@ class EloquentOAuthServiceProvider extends ServiceProvider { 'google' => 'AdamWathan\\EloquentOAuth\\Providers\\GoogleProvider', 'linkedin' => 'AdamWathan\\EloquentOAuth\\Providers\\LinkedInProvider', 'instagram' => 'AdamWathan\\EloquentOAuth\\Providers\\InstagramProvider', - ); + ); /** * Indicates if loading of the provider is deferred. @@ -42,17 +42,16 @@ public function register() protected function registerOAuthManager() { - $this->app['adamwathan.oauth'] = $this->app->share(function($app) - { - $this->configureOAuthIdentitiesTable(); - $users = new UserStore($app['config']['auth.model']); - $stateManager = new StateManager($app['session.store'], $app['request']); - $authorizer = new Authorizer($app['redirect']); - $authenticator = new Authenticator($app['auth'], $users, new IdentityStore); - $oauth = new OAuthManager($authorizer, $authenticator, $stateManager, new ProviderRegistrar); - $this->registerProviders($oauth); - return $oauth; - }); + $this->app['adamwathan.oauth'] = $this->app->share(function ($app) { + $this->configureOAuthIdentitiesTable(); + $users = new UserStore($app['config']['auth.model']); + $stateManager = new StateManager($app['session.store'], $app['request']); + $authorizer = new Authorizer($app['redirect']); + $authenticator = new Authenticator($app['auth'], $users, new IdentityStore); + $oauth = new OAuthManager($authorizer, $authenticator, $stateManager, new ProviderRegistrar); + $this->registerProviders($oauth); + return $oauth; + }); } protected function registerProviders($oauth)