Skip to content

Commit

Permalink
run cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Oct 2, 2024
1 parent 8ae9bf0 commit 6b63db2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/Settings/Personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ public function getForm(): TemplateResponse {
];
$this->initialStateService->provideInitialState('config', $userConfig);

$availableProviders = [];
foreach ($availableTaskTypes as $taskTypeId => $availableTaskType) {
try {
$provider = $this->taskProcessingManager->getPreferredProvider($taskTypeId);
$availableProviders[$availableTaskType['name']] = $provider->getName();
} catch (Exception $e) {
// pass
}
}
$this->initialStateService->provideInitialState('availableProviders', $availableProviders);
$availableProviders = [];
foreach ($availableTaskTypes as $taskTypeId => $availableTaskType) {
try {
$provider = $this->taskProcessingManager->getPreferredProvider($taskTypeId);
$availableProviders[$availableTaskType['name']] = $provider->getName();
} catch (Exception $e) {
// pass
}
}
$this->initialStateService->provideInitialState('availableProviders', $availableProviders);
return new TemplateResponse(Application::APP_ID, 'personalSettings');
}

Expand Down

0 comments on commit 6b63db2

Please sign in to comment.