mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add curly braces
This commit is contained in:
@@ -52,8 +52,10 @@ class connection
|
||||
public static function printLog()
|
||||
{
|
||||
$registry = registry::get_instance();
|
||||
if ( ! $registry->get('GV_debug'))
|
||||
if ( ! $registry->get('GV_debug')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$totalTime = 0;
|
||||
|
||||
foreach (self::$log as $entry) {
|
||||
@@ -109,9 +111,9 @@ class connection
|
||||
$name = 'appbox';
|
||||
} elseif (is_int((int) $name)) {
|
||||
$name = (int) $name;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! isset(self::$_PDO_instance[$name])) {
|
||||
$hostname = $port = $user = $password = $dbname = false;
|
||||
@@ -149,8 +151,10 @@ class connection
|
||||
throw new Exception('Connection not available');
|
||||
}
|
||||
}
|
||||
if (array_key_exists($name, self::$_PDO_instance))
|
||||
if (array_key_exists($name, self::$_PDO_instance)) {
|
||||
return self::$_PDO_instance[$name];
|
||||
}
|
||||
|
||||
throw new Exception('Connection not available');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user