mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
convert single case switch to if statement
This commit is contained in:
@@ -100,13 +100,9 @@ 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':
|
|
||||||
if (!array_key_exists($aLine[0], $aResult)) {
|
|
||||||
$aResult[$aLine[0]] = false;
|
$aResult[$aLine[0]] = false;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $bUnknown;
|
return $bUnknown;
|
||||||
|
|||||||
Reference in New Issue
Block a user