From 02550cc4dc5c015940fb8ba4babd7a760124e764 Mon Sep 17 00:00:00 2001 From: Marc Tobias Metten Date: Wed, 14 Sep 2016 03:50:18 +0200 Subject: [PATCH] PSR2 fixes for /settings --- settings/defaults.php | 19 ++++---- settings/phrase_settings.php | 93 +++++++++++++++++++----------------- settings/settings.php | 1 - 3 files changed, 58 insertions(+), 55 deletions(-) diff --git a/settings/defaults.php b/settings/defaults.php index 4f8d58c5..32625873 100644 --- a/settings/defaults.php +++ b/settings/defaults.php @@ -13,15 +13,15 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true); @define('CONST_Limit_Reindexing', true); // Set to false to avoid importing extra postcodes for the US. @define('CONST_Use_Extra_US_Postcodes', true); -// Set to true after importing Tiger house number data for the US. -// Note: The tables must already exist or queries will throw errors. -// After changing this setting run ./utils/setup --create-functions -// again. +/* Set to true after importing Tiger house number data for the US. + Note: The tables must already exist or queries will throw errors. + After changing this setting run ./utils/setup --create-functions + again. */ @define('CONST_Use_US_Tiger_Data', false); -// Set to true after importing other external house number data. -// Note: the aux tables must already exist or queries will throw errors. -// After changing this setting run ./utils/setup --create-functions -// again. +/* Set to true after importing other external house number data. + Note: the aux tables must already exist or queries will throw errors. + After changing this setting run ./utils/setup --create-functions + again. */ @define('CONST_Use_Aux_Location_data', false); // Proxy settings @@ -89,7 +89,7 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true); // Maximum number of OSM ids that may be queried at once // for the places endpoint. -@define('CONST_Places_Max_ID_count', 50); +@define('CONST_Places_Max_ID_count', 50); // Number of different geometry formats that may be queried in parallel. // Set to zero to disable polygon output. @@ -101,4 +101,3 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true); @define('CONST_Log_DB', false); // Set to a file name to enable logging to a file. @define('CONST_Log_File', false); - diff --git a/settings/phrase_settings.php b/settings/phrase_settings.php index a3447cc3..4ea5e021 100644 --- a/settings/phrase_settings.php +++ b/settings/phrase_settings.php @@ -1,51 +1,56 @@ array('administrative'), 'place' => array('house', 'houses'), -); -# If a class is in the white list then all types will -# be ignored except the ones given in the list. -# Also use this list to exclude an entire class from -# special phrases. -$aTagsWhitelist = array( + ); + +// If a class is in the white list then all types will +// be ignored except the ones given in the list. +// Also use this list to exclude an entire class from +// special phrases. +$aTagsWhitelist + = array( 'highway' => array('bus_stop', 'rest_area', 'raceway'), 'building' => array(), -); + ); diff --git a/settings/settings.php b/settings/settings.php index fcfc8295..d45a4237 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -2,4 +2,3 @@ echo "ERROR: Scripts must be run from build directory.\n"; exit; -