Skip to content

Commit ff59be1

Browse files
Merge pull request #462 from kamil-tekiela/Simplify-switch
Simplify switch
2 parents 2146f7c + c764c2b commit ff59be1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎src/Tools/ContextGenerator.php‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,10 @@ public static function formatName($name)
291291

292292
/* Format name */
293293
$base = $parts[1];
294-
switch ($base) {
295-
case 'MySql':
296-
$base = 'MySQL';
297-
break;
298-
case 'MariaDb':
299-
$base = 'MariaDB';
300-
break;
294+
if ($base == 'MySql') {
295+
$base = 'MySQL';
296+
} elseif ($base == 'MariaDb') {
297+
$base = 'MariaDB';
301298
}
302299

303300
/* Parse version to array */

0 commit comments

Comments
 (0)