@@ -54,7 +54,7 @@ |
||
54 | 54 | $query = $this->addExpirationCondition( |
55 | 55 | $query->select(['*']) |
56 | 56 | ->from($schema->getPassportView()) |
57 | - ->where($schema->getTokensValueColumn() . '=' . $this->createTypedParameter($query, $tokenValue)) |
|
57 | + ->where($schema->getTokensValueColumn().'='.$this->createTypedParameter($query, $tokenValue)) |
|
58 | 58 | ->andWhere($query->expr()->eq($this->getDatabaseSchema()->getTokensIsEnabledColumn(), '1')), |
59 | 59 | $expirationInSeconds, |
60 | 60 | $schema->getTokensValueCreatedAtColumn() |
@@ -163,7 +163,7 @@ |
||
163 | 163 | if ($data !== false) { |
164 | 164 | $schema = $this->getDatabaseSchema(); |
165 | 165 | $tokenId = $data[$schema->getTokensIdentityColumn()]; |
166 | - $scopes = $this->readScopeIdentifiers($tokenId); |
|
166 | + $scopes = $this->readScopeIdentifiers($tokenId); |
|
167 | 167 | $data[$schema->getTokensViewScopesColumn()] = $scopes; |
168 | 168 | $result = $data; |
169 | 169 | } |
@@ -50,7 +50,7 @@ discard block |
||
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 | }); |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | $schema = $this->getDatabaseSchema(); |
77 | 77 | $query |
78 | 78 | ->update($this->getTableNameForWriting()) |
79 | - ->where($schema->getTokensCodeColumn() . '=' . $this->createTypedParameter($query, $token->getCode())) |
|
79 | + ->where($schema->getTokensCodeColumn().'='.$this->createTypedParameter($query, $token->getCode())) |
|
80 | 80 | ->andWhere( |
81 | - $schema->getTokensCodeCreatedAtColumn() . '>' . $this->createTypedParameter($query, $earliestExpired) |
|
81 | + $schema->getTokensCodeCreatedAtColumn().'>'.$this->createTypedParameter($query, $earliestExpired) |
|
82 | 82 | ) |
83 | 83 | ->set($schema->getTokensValueColumn(), $this->createTypedParameter($query, $token->getValue())) |
84 | 84 | ->set($schema->getTokensTypeColumn(), $this->createTypedParameter($query, $token->getType())) |
@@ -126,7 +126,7 @@ discard block |
||
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 | }); |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | $dbNow = $this->createTypedParameter($query, $now); |
283 | 283 | $query |
284 | 284 | ->update($this->getTableNameForWriting()) |
285 | - ->where($this->getPrimaryKeyName() . '=' . $this->createTypedParameter($query, $token->getIdentifier())) |
|
285 | + ->where($this->getPrimaryKeyName().'='.$this->createTypedParameter($query, $token->getIdentifier())) |
|
286 | 286 | ->set($schema->getTokensValueColumn(), $this->createTypedParameter($query, $token->getValue())) |
287 | 287 | ->set($schema->getTokensValueCreatedAtColumn(), $dbNow); |
288 | 288 | if ($token->getRefreshValue() !== null) { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $schema = $this->getDatabaseSchema(); |
320 | 320 | $query |
321 | 321 | ->update($this->getTableNameForWriting()) |
322 | - ->where($this->getPrimaryKeyName() . '=' . $this->createTypedParameter($query, $identifier)) |
|
322 | + ->where($this->getPrimaryKeyName().'='.$this->createTypedParameter($query, $identifier)) |
|
323 | 323 | ->set($schema->getTokensIsEnabledColumn(), $this->createTypedParameter($query, false)); |
324 | 324 | |
325 | 325 | $numberOfUpdated = $query->execute(); |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | $query = $this->addExpirationCondition( |
433 | 433 | $query->select($columns) |
434 | 434 | ->from($this->getTableNameForReading()) |
435 | - ->where($column . '=' . $this->createTypedParameter($query, $identifier)) |
|
435 | + ->where($column.'='.$this->createTypedParameter($query, $identifier)) |
|
436 | 436 | ->andWhere($query->expr()->eq($this->getDatabaseSchema()->getTokensIsEnabledColumn(), '1')), |
437 | 437 | $expirationInSeconds, |
438 | 438 | $createdAtColumn |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | string $createdAtColumn |
455 | 455 | ): QueryBuilder { |
456 | 456 | $earliestExpired = (new DateTimeImmutable())->sub(new DateInterval("PT{$expirationInSeconds}S")); |
457 | - $query->andWhere($createdAtColumn . '>' . $this->createTypedParameter($query, $earliestExpired)); |
|
457 | + $query->andWhere($createdAtColumn.'>'.$this->createTypedParameter($query, $earliestExpired)); |
|
458 | 458 | |
459 | 459 | return $query; |
460 | 460 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | protected static function baseConfigureContainer(LimoncelloContainerInterface $container): void |
44 | 44 | { |
45 | 45 | $accountManager = null; |
46 | - $factory = function ( |
|
46 | + $factory = function( |
|
47 | 47 | PsrContainerInterface $container |
48 | 48 | ) use (&$accountManager): PassportAccountManagerInterface { |
49 | 49 | if ($accountManager === null) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $container[AccountManagerInterface::class] = $factory; |
59 | 59 | $container[PassportAccountManagerInterface::class] = $factory; |
60 | 60 | |
61 | - $container[DatabaseSchemaInterface::class] = function ( |
|
61 | + $container[DatabaseSchemaInterface::class] = function( |
|
62 | 62 | PsrContainerInterface $container |
63 | 63 | ): DatabaseSchemaInterface { |
64 | 64 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return new DatabaseSchema($settings[C::KEY_USER_TABLE_NAME], $settings[C::KEY_USER_PRIMARY_KEY_NAME]); |
67 | 67 | }; |
68 | 68 | |
69 | - $container[PassportServerInterface::class] = function ( |
|
69 | + $container[PassportServerInterface::class] = function( |
|
70 | 70 | PsrContainerInterface $container |
71 | 71 | ): PassportServerInterface { |
72 | 72 | $integration = $container->get(PassportServerIntegrationInterface::class); |