From: Marc Tobias Metten Date: Wed, 14 Sep 2016 01:00:57 +0000 (+0200) Subject: case statement need : instead of ;. Added more breaks X-Git-Tag: v3.0.0~130 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/51155b63 case statement need : instead of ;. Added more breaks --- diff --git a/utils/importWikipedia.php b/utils/importWikipedia.php index a4b8cb77..1d3b84ac 100755 --- a/utils/importWikipedia.php +++ b/utils/importWikipedia.php @@ -389,15 +389,16 @@ if (isset($aCMDResult['link'])) { break; case 'prefecture japan': $aRecord['name'] = trim(str_replace(' Prefecture', ' ', $aRecord['name'])); + break; case 'state': case '#us state': case 'county': case 'u.s. state': case 'u.s. state symbols': case 'german state': - case 'province or territory of canada'; - case 'indian jurisdiction'; - case 'province'; + case 'province or territory of canada': + case 'indian jurisdiction': + case 'province': case 'french region': case 'region of italy': case 'kommune': @@ -415,6 +416,7 @@ if (isset($aCMDResult['link'])) { break; case 'settlement': $bUnknown = true; + break; case 'french commune': case 'italian comune': case 'uk place': @@ -442,7 +444,7 @@ if (isset($aCMDResult['link'])) { case 'airport': $fMaxDist = 0.2; $sURL .= "&viewbox=".($aRecord['lon']-0.5).",".($aRecord['lat']+0.5).",".($aRecord['lon']+0.5).",".($aRecord['lat']-0.5); - + break; case 'ship begin': $fMaxDist = 0.1; $aTypes = array('wreck');