diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-10-17 15:42:21 +0200 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-10-17 20:30:47 +0200 |
commit | a1681b0756ef784ef7056a3aae3e569a6dcae00e (patch) | |
tree | 13ad313771c95cfba750ca3f21048341c0e75105 /apps/oauth2/lib/Migration | |
parent | 40fd76f69e601ab5579e8ce9b81318d3924dd463 (diff) | |
download | nextcloud-server-dbQueriesExecStmt2.tar.gz nextcloud-server-dbQueriesExecStmt2.zip |
chore(db): Apply query prepared statementsdbQueriesExecStmt2
Fix: psalm
fix: bad file
fix: bug
chore: add batch
chore: add batch
chore: add batch
fix: psalm
Diffstat (limited to 'apps/oauth2/lib/Migration')
-rw-r--r-- | apps/oauth2/lib/Migration/SetTokenExpiration.php | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/apps/oauth2/lib/Migration/SetTokenExpiration.php b/apps/oauth2/lib/Migration/SetTokenExpiration.php index 5077e74be87..51b1061ae11 100644 --- a/apps/oauth2/lib/Migration/SetTokenExpiration.php +++ b/apps/oauth2/lib/Migration/SetTokenExpiration.php @@ -18,21 +18,15 @@ use OCP\Migration\IRepairStep; class SetTokenExpiration implements IRepairStep { - /** @var IDBConnection */ - private $connection; - /** @var ITimeFactory */ private $time; - /** @var TokenProvider */ - private $tokenProvider; - - public function __construct(IDBConnection $connection, + public function __construct( + private IDBConnection $connection, ITimeFactory $timeFactory, - TokenProvider $tokenProvider) { - $this->connection = $connection; + private TokenProvider $tokenProvider, + ) { $this->time = $timeFactory; - $this->tokenProvider = $tokenProvider; } public function getName(): string { @@ -44,7 +38,7 @@ class SetTokenExpiration implements IRepairStep { $qb->select('*') ->from('oauth2_access_tokens'); - $cursor = $qb->execute(); + $cursor = $qb->executeQuery(); while ($row = $cursor->fetch()) { $token = AccessToken::fromRow($row); |