X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e276ec2e94cdb16b99062bf0ec44c958925c9766..c555b60b366d6efb9acada65e0212196837a8b0f:/lib/cmd.php diff --git a/lib/cmd.php b/lib/cmd.php index 898fbe95..28d56f2e 100644 --- a/lib/cmd.php +++ b/lib/cmd.php @@ -16,7 +16,7 @@ function getCmdOpt($aArg, $aSpec, &$aResult, $bExitOnError = false, $bExitOnUnkn $aResult = array(); $bUnknown = false; - $iSize = sizeof($aArg); + $iSize = count($aArg); for ($i = 1; $i < $iSize; $i++) { if (isset($aQuick[$aArg[$i]])) { $aLine = $aQuick[$aArg[$i]]; @@ -99,7 +99,7 @@ function showUsage($aSpec, $bExit = false, $sError = false) echo 'Try `'.basename($_SERVER['argv'][0]).' --help` for more information.'."\n"; exit; } - echo "Usage: ".basename($_SERVER['argv'][0])."\n"; + echo 'Usage: '.basename($_SERVER['argv'][0])."\n"; $bFirst = true; foreach ($aSpec as $aLine) { if (is_array($aLine)) { @@ -134,7 +134,7 @@ function info($sMsg) echo date('Y-m-d H:i:s == ').$sMsg."\n"; } -$aWarnings = []; +$aWarnings = array(); function warn($sMsg)