mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
convert single case switch to if statement
This commit is contained in:
@@ -100,12 +100,8 @@ function getCmdOpt($aArg, $aSpec, &$aResult, $bExitOnError = false, $bExitOnUnkn
|
|||||||
if ($aCounts[$aLine[0]] > $aLine[3]) {
|
if ($aCounts[$aLine[0]] > $aLine[3]) {
|
||||||
showUsage($aSpec, $bExitOnError, 'Option \''.$aLine[0].'\' is pressent too many times');
|
showUsage($aSpec, $bExitOnError, 'Option \''.$aLine[0].'\' is pressent too many times');
|
||||||
}
|
}
|
||||||
switch ($aLine[6]) {
|
if ($aLine[6] == 'bool' && !array_key_exists($aLine[0], $aResult)) {
|
||||||
case 'bool':
|
$aResult[$aLine[0]] = false;
|
||||||
if (!array_key_exists($aLine[0], $aResult)) {
|
|
||||||
$aResult[$aLine[0]] = false;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user