]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/ParameterParser.php
Merge branch 'PSR2-fixes-for-wikidata' of https://github.com/mtmail/Nominatim into...
[nominatim.git] / lib / ParameterParser.php
index f3596cfdbce1bbb18e4387aafa1305806a4642ee..0c0471a39b732b185573d51a22295173ede572ec 100644 (file)
@@ -4,9 +4,10 @@ class ParameterParser
 {
     private $aParams;
 
-    function __construct($aParams = NULL)
+
+    function __construct($aParams = null)
     {
-        $this->aParams = ($aParams === NULL) ? $_GET : $aParams;
+        $this->aParams = ($aParams === null) ? $_GET : $aParams;
     }
 
     function getBool($sName, $bDefault = false)
@@ -77,9 +78,9 @@ class ParameterParser
         return $aDefault;
     }
 
-    function getPreferredLanguages($sFallback = NULL)
+    function getPreferredLanguages($sFallback = null)
     {
-        if ($sFallback === NULL && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
+        if ($sFallback === null && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
             $sFallback = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
         }