mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
fix function declaration errors according to PSR2 coding style guide
This commit is contained in:
@@ -46,8 +46,9 @@ if ($aCMDResult['wiki-import']) {
|
||||
# quotes into the wiki
|
||||
$sType = preg_replace('/"/', '', $sType);
|
||||
# sanity check, in case somebody added garbage in the wiki
|
||||
if (preg_match('/^\\w+$/', $sClass) < 1 ||
|
||||
preg_match('/^\\w+$/', $sType) < 1) {
|
||||
if (preg_match('/^\\w+$/', $sClass) < 1
|
||||
|| preg_match('/^\\w+$/', $sType) < 1
|
||||
) {
|
||||
trigger_error("Bad class/type for language $sLanguage: $sClass=$sType");
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user