Skip to content

Commit d723079

Browse files
committed
fixed code style
1 parent ce754c1 commit d723079

File tree

4 files changed

+170
-170
lines changed

4 files changed

+170
-170
lines changed

lib/Controller/SettingsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function createProvider(string $identifier, string $clientId, string $cli
105105
return new JSONResponse(array_merge($provider->jsonSerialize(), ['settings' => $providerSettings]));
106106
}
107107

108-
public function updateProvider(int $providerId, string $identifier, string $clientId, string $discoveryEndpoint, ?string $clientSecret = null, string $bearerSecret = null,
108+
public function updateProvider(int $providerId, string $identifier, string $clientId, string $discoveryEndpoint, ?string $clientSecret = null, ?string $bearerSecret = null,
109109
array $settings = [], string $scope = 'openid email profile', ?string $endSessionEndpoint = null): JSONResponse {
110110
$provider = $this->providerMapper->getProvider($providerId);
111111

lib/Db/ProviderMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function getProviders() {
9191
*/
9292
public function createOrUpdateProvider(string $identifier, ?string $clientid = null,
9393
?string $clientsecret = null, ?string $discoveryuri = null, string $scope = 'openid email profile',
94-
?string $endsessionendpointuri = null, string $bearersecret = null) {
94+
?string $endsessionendpointuri = null, ?string $bearersecret = null) {
9595
try {
9696
$provider = $this->findProviderByIdentifier($identifier);
9797
} catch (DoesNotExistException $eNotExist) {

lib/Migration/Version010304Date20230902125945.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Version010304Date20230902125945 extends SimpleMigrationStep {
4646

4747
public function __construct(
4848
IDBConnection $connection,
49-
ICrypto $crypto
49+
ICrypto $crypto,
5050
) {
5151
$this->connection = $connection;
5252
$this->crypto = $crypto;
@@ -75,14 +75,14 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
7575
// update secrets in user_oidc_providers and user_oidc_id4me
7676
$qbUpdate = $this->connection->getQueryBuilder();
7777
$qbUpdate->update($tableName)
78-
->set('bearer_secret', $qbUpdate->createParameter('updateSecret'))
79-
->where(
80-
$qbUpdate->expr()->eq('id', $qbUpdate->createParameter('updateId'))
81-
);
78+
->set('bearer_secret', $qbUpdate->createParameter('updateSecret'))
79+
->where(
80+
$qbUpdate->expr()->eq('id', $qbUpdate->createParameter('updateId'))
81+
);
8282

8383
$qbSelect = $this->connection->getQueryBuilder();
8484
$qbSelect->select('id', 'bearer_secret')
85-
->from($tableName);
85+
->from($tableName);
8686
$req = $qbSelect->executeQuery();
8787
while ($row = $req->fetch()) {
8888
$id = $row['id'];

0 commit comments

Comments
 (0)