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

+3 -1
View File
@@ -39,7 +39,9 @@ final class MDLicensesSet extends MDValueSet {
* @return string|boolean
*/
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;
}