@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | // configure the db connections holder |
| 22 | 22 | $db_connections = new Aura\Sql\ConnectionLocator(); |
| 23 | -$db_connections->setDefault(function () use ($config) { |
|
| 23 | +$db_connections->setDefault(function() use ($config) { |
|
| 24 | 24 | $connection = $config->database->slave; |
| 25 | 25 | return new Aura\Sql\ExtendedPdo( |
| 26 | 26 | "mysql:host={$connection->host}", |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $connection->password |
| 29 | 29 | ); |
| 30 | 30 | }); |
| 31 | -$db_connections->setWrite('master', function () use ($config) { |
|
| 31 | +$db_connections->setWrite('master', function() use ($config) { |
|
| 32 | 32 | $connection = $config->database->master; |
| 33 | 33 | return new Aura\Sql\ExtendedPdo( |
| 34 | 34 | "mysql:host={$connection->host}", |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $connection->password |
| 37 | 37 | ); |
| 38 | 38 | }); |
| 39 | -$db_connections->setRead('slave', function () use ($config) { |
|
| 39 | +$db_connections->setRead('slave', function() use ($config) { |
|
| 40 | 40 | $connection = $config->database->slave; |
| 41 | 41 | $pdo = new Aura\Sql\ExtendedPdo( |
| 42 | 42 | "mysql:host={$connection->host}", |