Completed
Push — master ( 4fd5ad...947ba3 )
by Neomerx
04:05
created
src/Repositories/TokenRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $tokenIdentifier = null;
52 52
         if (empty($scopeIdentifiers = $code->getScopeIdentifiers()) === false) {
53
-            $this->inTransaction(function () use ($values, $scopeIdentifiers, &$tokenIdentifier) {
53
+            $this->inTransaction(function() use ($values, $scopeIdentifiers, &$tokenIdentifier) {
54 54
                 $tokenIdentifier = $this->createResource($values);
55 55
                 $this->bindScopeIdentifiers($tokenIdentifier, $scopeIdentifiers);
56 56
             });
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
         $tokenIdentifier = null;
128 128
         if (empty($scopeIdentifiers = $token->getScopeIdentifiers()) === false) {
129
-            $this->inTransaction(function () use ($values, $scopeIdentifiers, &$tokenIdentifier) {
129
+            $this->inTransaction(function() use ($values, $scopeIdentifiers, &$tokenIdentifier) {
130 130
                 $tokenIdentifier = $this->createResource($values);
131 131
                 $this->bindScopeIdentifiers($tokenIdentifier, $scopeIdentifiers);
132 132
             });
Please login to merge, or discard this patch.
src/Repositories/ClientRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         if (empty($scopeIdentifiers = $client->getScopeIdentifiers()) === true) {
64 64
             $this->createResource($values);
65 65
         } else {
66
-            $this->inTransaction(function () use ($identifier, $values, $scopeIdentifiers) {
66
+            $this->inTransaction(function() use ($identifier, $values, $scopeIdentifiers) {
67 67
                 $this->createResource($values);
68 68
                 $this->bindScopeIdentifiers($identifier, $scopeIdentifiers);
69 69
             });
Please login to merge, or discard this patch.
src/Adaptors/Generic/TokenRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         if ($data !== false) {
112 112
             $scheme  = $this->getDatabaseScheme();
113 113
             $tokenId = $data[$scheme->getTokensIdentityColumn()];
114
-            $scopes  =  $this->readScopeIdentifiers($tokenId);
114
+            $scopes  = $this->readScopeIdentifiers($tokenId);
115 115
             $data[$scheme->getTokensViewScopesColumn()] = $scopes;
116 116
             $result = $data;
117 117
         }
Please login to merge, or discard this patch.
src/BasePassportServer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 
361 361
         assert(is_string($defaultClientId) === true && empty($defaultClientId) === false);
362 362
 
363
-        $defaultClient   = $this->getIntegration()->getClientRepository()->read($defaultClientId);
363
+        $defaultClient = $this->getIntegration()->getClientRepository()->read($defaultClientId);
364 364
 
365 365
         assert($defaultClient !== null);
366 366
 
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
             $tokenRepo->updateValues($updatedToken);
434 434
         } else {
435 435
             assert(is_array($scope));
436
-            $tokenRepo->inTransaction(function () use ($tokenRepo, $updatedToken, $scope) {
436
+            $tokenRepo->inTransaction(function() use ($tokenRepo, $updatedToken, $scope) {
437 437
                 $tokenRepo->updateValues($updatedToken);
438 438
                 $tokenRepo->unbindScopes($updatedToken->getIdentifier());
439 439
                 $tokenRepo->bindScopeIdentifiers($updatedToken->getIdentifier(), $scope);
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
     {
486 486
         $this->logDebug('Sending token as JSON response.');
487 487
 
488
-        $scopeList  = $token->isScopeModified() === false || empty($token->getScopeIdentifiers()) === true ?
488
+        $scopeList = $token->isScopeModified() === false || empty($token->getScopeIdentifiers()) === true ?
489 489
             null : $token->getScopeList();
490 490
 
491 491
         // for access token format @link https://tools.ietf.org/html/rfc6749#section-5.1
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
     ): ResponseInterface {
544 544
         $this->logDebug('Sending token as redirect response.');
545 545
 
546
-        $scopeList  = $token->isScopeModified() === false || empty($token->getScopeIdentifiers()) === true ?
546
+        $scopeList = $token->isScopeModified() === false || empty($token->getScopeIdentifiers()) === true ?
547 547
             null : $token->getScopeList();
548 548
 
549 549
         // for access token format @link https://tools.ietf.org/html/rfc6749#section-5.1
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
      */
687 687
     private function filterNulls(array $array): array
688 688
     {
689
-        return array_filter($array, function ($value) {
689
+        return array_filter($array, function($value) {
690 690
             return $value !== null;
691 691
         });
692 692
     }
Please login to merge, or discard this patch.
src/Package/PassportSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
             [
141 141
                 ContainerInterface::class,
142 142
                 'int',
143
-                function (ReflectionParameter $parameter) {
143
+                function(ReflectionParameter $parameter) {
144 144
                     return $parameter->allowsNull() === true && $parameter->isArray() === true;
145 145
                 }
146 146
             ]
Please login to merge, or discard this patch.
src/Package/PassportContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
     {
41 41
         static::baseConfigureContainer($container);
42 42
 
43
-        $container[PassportServerIntegrationInterface::class] = function (PsrContainerInterface $container) {
43
+        $container[PassportServerIntegrationInterface::class] = function(PsrContainerInterface $container) {
44 44
             assert($container !== null);
45 45
 
46 46
             return new PassportServerIntegration($container);
47 47
         };
48 48
 
49
-        $container[TokenRepositoryInterface::class] = function (PsrContainerInterface $container) {
49
+        $container[TokenRepositoryInterface::class] = function(PsrContainerInterface $container) {
50 50
             $connection = $container->get(Connection::class);
51 51
             $scheme     = $container->get(DatabaseSchemeInterface::class);
52 52
 
Please login to merge, or discard this patch.
src/Integration/BasePassportServerIntegration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         /** @var callable|null $customPropProvider */
128 128
         $customPropProvider = $this->settings[C::KEY_TOKEN_CUSTOM_PROPERTIES_PROVIDER] ?? null;
129 129
         $wrapper = $customPropProvider !== null ?
130
-            function (TokenInterface $token) use ($container, $customPropProvider): array {
130
+            function(TokenInterface $token) use ($container, $customPropProvider) : array {
131 131
                 return call_user_func($customPropProvider, $container, $token);
132 132
             } : null;
133 133
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             self::SCOPE_APPROVAL_IS_SCOPE_MODIFIED => $isScopeModified,
261 261
             self::SCOPE_APPROVAL_SCOPE             => $scopeList,
262 262
             self::SCOPE_APPROVAL_STATE             => $state,
263
-        ], function ($value) {
263
+        ], function($value) {
264 264
             return $value !== null;
265 265
         });
266 266
 
Please login to merge, or discard this patch.
src/Package/BasePassportContainerConfigurator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     protected static function baseConfigureContainer(LimoncelloContainerInterface $container): void
44 44
     {
45 45
         $accountManager = null;
46
-        $factory        = function (PsrContainerInterface $container) use (&$accountManager) {
46
+        $factory        = function(PsrContainerInterface $container) use (&$accountManager) {
47 47
             if ($accountManager === null) {
48 48
                 $accountManager = new AccountManager($container);
49 49
             }
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
         $container[AccountManagerInterface::class]         = $factory;
54 54
         $container[PassportAccountManagerInterface::class] = $factory;
55 55
 
56
-        $container[DatabaseSchemeInterface::class] = function (PsrContainerInterface $container) {
56
+        $container[DatabaseSchemeInterface::class] = function(PsrContainerInterface $container) {
57 57
             $settings = $container->get(SettingsProviderInterface::class)->get(C::class);
58 58
 
59 59
             return new DatabaseScheme($settings[C::KEY_USER_TABLE_NAME], $settings[C::KEY_USER_PRIMARY_KEY_NAME]);
60 60
         };
61 61
 
62
-        $container[PassportServerInterface::class] = function (PsrContainerInterface $container) {
62
+        $container[PassportServerInterface::class] = function(PsrContainerInterface $container) {
63 63
             $integration    = $container->get(PassportServerIntegrationInterface::class);
64 64
             $passportServer = new PassportServer($integration);
65 65
 
Please login to merge, or discard this patch.
src/Package/MySqlPassportContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
     {
41 41
         static::baseConfigureContainer($container);
42 42
 
43
-        $container[PassportServerIntegrationInterface::class] = function (PsrContainerInterface $container) {
43
+        $container[PassportServerIntegrationInterface::class] = function(PsrContainerInterface $container) {
44 44
             assert($container !== null);
45 45
 
46 46
             return new PassportServerIntegration($container);
47 47
         };
48 48
 
49
-        $container[TokenRepositoryInterface::class] = function (PsrContainerInterface $container) {
49
+        $container[TokenRepositoryInterface::class] = function(PsrContainerInterface $container) {
50 50
             $connection = $container->get(Connection::class);
51 51
             $scheme     = $container->get(DatabaseSchemeInterface::class);
52 52
 
Please login to merge, or discard this patch.