Remove inline if clauses

This commit is contained in:
jrenslin committed 2021-02-06 20:10:17 +01:00
1 parent c4a95ea511
commit dbc7d01de4
2 files changed
+9 -3

No files matched your search

+6 -2
View File
@@ -24,8 +24,12 @@ public static function getTlUnsortedList(MDTlLoader $tlLoader, array $keyList, s
$output = [];
foreach ($keyList as $tID) {
if ($tID === "") $output[$tID] = "";
else $output[$tID] = $tlLoader->tl($tlFileName, $tlVarName, $tID);
if ($tID === "") {
$output[$tID] = "";
}
else {
$output[$tID] = $tlLoader->tl($tlFileName, $tlVarName, $tID);
}
}
return $output;