Remove inline if clauses
This commit is contained in:
parent
c4a95ea511
commit
dbc7d01de4
|
@ -39,7 +39,9 @@ final class MDLicensesSet extends MDValueSet {
|
||||||
* @return string|boolean
|
* @return string|boolean
|
||||||
*/
|
*/
|
||||||
final public static function checkLicenseAvailable(string $license) {
|
final public static function checkLicenseAvailable(string $license) {
|
||||||
if (isset(self::AVAILABLE_LICENSES[$license])) return self::AVAILABLE_LICENSES[$license];
|
if (isset(self::AVAILABLE_LICENSES[$license])) {
|
||||||
|
return self::AVAILABLE_LICENSES[$license];
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,12 @@ class MDValueSet {
|
||||||
|
|
||||||
$output = [];
|
$output = [];
|
||||||
foreach ($keyList as $tID) {
|
foreach ($keyList as $tID) {
|
||||||
if ($tID === "") $output[$tID] = "";
|
if ($tID === "") {
|
||||||
else $output[$tID] = $tlLoader->tl($tlFileName, $tlVarName, $tID);
|
$output[$tID] = "";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$output[$tID] = $tlLoader->tl($tlFileName, $tlVarName, $tID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user