Completed
Push — master ( 0e7cb7...85d6ec )
by Neomerx
02:27
created
src/Integration/BasePassportServerIntegration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
             self::SCOPE_APPROVAL_IS_SCOPE_MODIFIED => $isScopeModified,
220 220
             self::SCOPE_APPROVAL_SCOPE             => $scopeList,
221 221
             self::SCOPE_APPROVAL_STATE             => $state,
222
-        ], function ($value) {
222
+        ], function($value) {
223 223
             return $value !== null;
224 224
         });
225 225
 
Please login to merge, or discard this patch.
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/Package/PassportContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         static::baseConfigureContainer($container);
44 44
 
45
-        $container[PassportServerIntegrationInterface::class] = function (PsrContainerInterface $container) {
45
+        $container[PassportServerIntegrationInterface::class] = function(PsrContainerInterface $container) {
46 46
             assert($container !== null);
47 47
 
48 48
             return new class ($container) extends GenericPassportServerIntegration
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             };
93 93
         };
94 94
 
95
-        $container[TokenRepositoryInterface::class] = function (PsrContainerInterface $container) {
95
+        $container[TokenRepositoryInterface::class] = function(PsrContainerInterface $container) {
96 96
             $connection = $container->get(Connection::class);
97 97
             $scheme     = $container->get(DatabaseSchemeInterface::class);
98 98
 
Please login to merge, or discard this patch.
src/Package/PassportRoutesConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public static function configureRoutes(GroupInterface $routes)
40 40
     {
41
-        $routes->group(static::GROUP_PREFIX, function (GroupInterface $group) {
41
+        $routes->group(static::GROUP_PREFIX, function(GroupInterface $group) {
42 42
             $group->get(static::AUTHORIZE_URI, PassportController::AUTHORIZE_HANDLER);
43 43
             $group->post(static::TOKEN_URI, PassportController::TOKEN_HANDLER);
44 44
         });
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)
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
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         static::baseConfigureContainer($container);
44 44
 
45
-        $container[PassportServerIntegrationInterface::class] = function (PsrContainerInterface $container) {
45
+        $container[PassportServerIntegrationInterface::class] = function(PsrContainerInterface $container) {
46 46
             assert($container !== null);
47 47
 
48 48
             return new class ($container) extends MySqlPassportServerIntegration
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             };
93 93
         };
94 94
 
95
-        $container[TokenRepositoryInterface::class] = function (PsrContainerInterface $container) {
95
+        $container[TokenRepositoryInterface::class] = function(PsrContainerInterface $container) {
96 96
             $connection = $container->get(Connection::class);
97 97
             $scheme     = $container->get(DatabaseSchemeInterface::class);
98 98
 
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/Adaptors/MySql/TokenRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $statement->setFetchMode(PDO::FETCH_ASSOC);
151 151
         $attributesOrFalse = $statement->fetch();
152 152
         if ($attributesOrFalse === false) {
153
-            $model   = null;
153
+            $model = null;
154 154
             $scopes = null;
155 155
         } else {
156 156
             $scopes = $attributesOrFalse[$scopesColumn];
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         $statement->setFetchMode(PDO::FETCH_CLASS, $modelClass);
193 193
         $modelOrFalse = $statement->fetch();
194 194
         if ($modelOrFalse === false) {
195
-            $model   = null;
195
+            $model = null;
196 196
             $scopes = null;
197 197
         } else {
198 198
             $scopes = $modelOrFalse->{$scopesColumn};
Please login to merge, or discard this patch.