ApplicationConfigForm: Remove loop and simplify the code

This commit is contained in:
Sukhwinder Dhillon 2022-05-03 14:31:02 +02:00 committed by Johannes Meyer
parent 41a23c3eb3
commit 09d378ab65
1 changed files with 2 additions and 4 deletions

View File

@ -70,10 +70,8 @@ class ApplicationConfigForm extends Form
)
);
$backends = array();
foreach (ResourceFactory::getResourceConfigs()->toArray() as $name => $resource) {
$backends[$name] = $name;
}
$backends = array_keys(ResourceFactory::getResourceConfigs()->toArray());
$backends = array_combine($backends, $backends);
$this->addElement(
'select',