Passed
Push — develop ( 3f3e75...907aec )
by nguereza
03:12
created
src/Service/Provider/OAuth2ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->app->bind(UserAuthenticationInterface::class, UserAuthentication::class);
107 107
 
108 108
         // Configuration
109
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) {
109
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) {
110 110
             return new Configuration($app->get(Config::class)->get('oauth2', []));
111 111
         });
112 112
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         // Servers
134 134
         $this->app->bind(ResourceServerInterface::class, ResourceServer::class);
135
-        $this->app->bind(AuthorizationServerInterface::class, function (ContainerInterface $app) {
135
+        $this->app->bind(AuthorizationServerInterface::class, function(ContainerInterface $app) {
136 136
             /** @var Configuration $cfg */
137 137
             $cfg = $app->get(Configuration::class);
138 138
             $grants = $cfg->getGrants();
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function addRoutes(Router $router): void
170 170
     {
171
-        $router->group('/oauth2', function (Router $router) {
171
+        $router->group('/oauth2', function(Router $router) {
172 172
             $router->post('/token', AccessTokenRequestHandler::class, 'oauth2_access_token');
173 173
             $router->add('/authorize', AuthorizationRequestHandler::class, ['GET', 'POST'], 'oauth2_authorization_code');
174 174
             $router->post('/revocation', TokenRevocationRequestHandler::class, 'oauth2_revoke_access_token');
Please login to merge, or discard this patch.