Code Duplication    Length = 8-8 lines in 2 locations

bootstrap.php 2 locations

@@ 31-38 (lines=8) @@
28
        $connection->password
29
    );
30
});
31
$db_connections->setWrite('master', function () use ($configuration) {
32
    $connection = $configuration->database->master;
33
    return new Aura\Sql\ExtendedPdo(
34
        "mysql:host={$connection->host}",
35
        $connection->user,
36
        $connection->password
37
    );
38
});
39
$db_connections->setRead('slave', function () use ($configuration) {
40
    $connection = $configuration->database->slave;
41
    return new Aura\Sql\ExtendedPdo(
@@ 39-46 (lines=8) @@
36
        $connection->password
37
    );
38
});
39
$db_connections->setRead('slave', function () use ($configuration) {
40
    $connection = $configuration->database->slave;
41
    return new Aura\Sql\ExtendedPdo(
42
        "mysql:host={$connection->host}",
43
        $connection->user,
44
        $connection->password
45
    );
46
});
47
48
// setup the service locator
49
$container = new Pimple\Container();