code beautifier

This commit is contained in:
Gregory Letellier
2023-11-03 09:01:55 +01:00
parent 4d7f0d6d83
commit 72ba193a1e
3 changed files with 15 additions and 16 deletions

View File

@@ -175,10 +175,9 @@ class Connection
}
}
public static function getInstance($connection="")
public static function getInstance($connection = "")
{
if($connection=="" && count(self::$instances)>0)
{
if ($connection == "" && count(self::$instances) > 0) {
$connection = array_keys(self::$instances)[0];
}
if (isset(self::$instances[$connection])) {