]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/db.php
fix function declaration errors according to PSR2 coding style guide
[nominatim.git] / lib / db.php
index 87868e5e5d2c36b38a1ca81a7efbae69d31976e9..c3aa52bb504698a3b0569a959c39d0d9a537546b 100644 (file)
@@ -5,8 +5,10 @@ require_once('DB.php');
 function &getDB($bNew = false, $bPersistent = false)
 {
     // Get the database object
-    $oDB = chksql(DB::connect(CONST_Database_DSN.($bNew?'?new_link=true':''), $bPersistent),
-                  "Failed to establish database connection");
+    $oDB = chksql(
+        DB::connect(CONST_Database_DSN.($bNew?'?new_link=true':''), $bPersistent),
+        "Failed to establish database connection"
+    );
     $oDB->setFetchMode(DB_FETCHMODE_ASSOC);
     $oDB->query("SET DateStyle TO 'sql,european'");
     $oDB->query("SET client_encoding TO 'utf-8'");