Skip to content

Commit

Permalink
ApplicationConfigForm: Remove loop and simplify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 authored and nilmerg committed May 27, 2022
1 parent 4db022f commit 77d531b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions application/forms/Config/General/ApplicationConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ public function createElements(array $formData)
)
);

$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',
Expand Down

0 comments on commit 77d531b

Please sign in to comment.