mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12124)
This commit is contained in:
@@ -129,18 +129,18 @@ class Eloquent
|
||||
public static function setConnection($name, $db_host = null, $db_user = '', $db_pass = '', $db_name = '', $db_port = null, $db_socket = null)
|
||||
{
|
||||
\Config::set("database.connections.$name", [
|
||||
"driver" => "mysql",
|
||||
"host" => $db_host,
|
||||
"port" => $db_port,
|
||||
"database" => $db_name,
|
||||
"username" => $db_user,
|
||||
"password" => $db_pass,
|
||||
"unix_socket" => $db_socket,
|
||||
"charset" => "utf8",
|
||||
"collation" => "utf8_unicode_ci",
|
||||
"prefix" => "",
|
||||
"strict" => true,
|
||||
"engine" => null,
|
||||
'driver' => 'mysql',
|
||||
'host' => $db_host,
|
||||
'port' => $db_port,
|
||||
'database' => $db_name,
|
||||
'username' => $db_user,
|
||||
'password' => $db_pass,
|
||||
'unix_socket' => $db_socket,
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'prefix' => '',
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
]);
|
||||
\Config::set('database.default', $name);
|
||||
}
|
||||
|
@@ -202,10 +202,10 @@ class Schema
|
||||
{
|
||||
$relationships = $this->getTableRelationships();
|
||||
|
||||
d_echo("Starting Tables: " . json_encode($tables) . PHP_EOL);
|
||||
d_echo('Starting Tables: ' . json_encode($tables) . PHP_EOL);
|
||||
if (! empty($history)) {
|
||||
$tables = array_diff($tables, $history);
|
||||
d_echo("Filtered Tables: " . json_encode($tables) . PHP_EOL);
|
||||
d_echo('Filtered Tables: ' . json_encode($tables) . PHP_EOL);
|
||||
}
|
||||
|
||||
foreach ($tables as $table) {
|
||||
|
Reference in New Issue
Block a user