Skip to content

Commit

Permalink
fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
memurats committed Nov 14, 2024
1 parent ce754c1 commit d723079
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 170 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function createProvider(string $identifier, string $clientId, string $cli
return new JSONResponse(array_merge($provider->jsonSerialize(), ['settings' => $providerSettings]));
}

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

Expand Down
2 changes: 1 addition & 1 deletion lib/Db/ProviderMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getProviders() {
*/
public function createOrUpdateProvider(string $identifier, ?string $clientid = null,
?string $clientsecret = null, ?string $discoveryuri = null, string $scope = 'openid email profile',
?string $endsessionendpointuri = null, string $bearersecret = null) {
?string $endsessionendpointuri = null, ?string $bearersecret = null) {
try {
$provider = $this->findProviderByIdentifier($identifier);
} catch (DoesNotExistException $eNotExist) {
Expand Down
12 changes: 6 additions & 6 deletions lib/Migration/Version010304Date20230902125945.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Version010304Date20230902125945 extends SimpleMigrationStep {

public function __construct(
IDBConnection $connection,
ICrypto $crypto
ICrypto $crypto,
) {
$this->connection = $connection;
$this->crypto = $crypto;
Expand Down Expand Up @@ -75,14 +75,14 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
// update secrets in user_oidc_providers and user_oidc_id4me
$qbUpdate = $this->connection->getQueryBuilder();
$qbUpdate->update($tableName)
->set('bearer_secret', $qbUpdate->createParameter('updateSecret'))
->where(
$qbUpdate->expr()->eq('id', $qbUpdate->createParameter('updateId'))
);
->set('bearer_secret', $qbUpdate->createParameter('updateSecret'))
->where(
$qbUpdate->expr()->eq('id', $qbUpdate->createParameter('updateId'))
);

$qbSelect = $this->connection->getQueryBuilder();
$qbSelect->select('id', 'bearer_secret')
->from($tableName);
->from($tableName);
$req = $qbSelect->executeQuery();
while ($row = $req->fetch()) {
$id = $row['id'];
Expand Down
Loading

0 comments on commit d723079

Please sign in to comment.