@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | private function defineConnections(ContainerBuilder $container, array $connections) |
| 65 | 65 | { |
| 66 | - foreach ($connections as $name => $conf){ |
|
| 66 | + foreach ($connections as $name => $conf) { |
|
| 67 | 67 | $connectionDefinition = new Definition( |
| 68 | 68 | Database::class, |
| 69 | 69 | [ |
@@ -74,6 +74,6 @@ discard block |
||
| 74 | 74 | $connectionDefinition->setFactory([new Reference('mongo.connection_factory'), 'createConnection']); |
| 75 | 75 | $container->setDefinition('mongo.connection.'.$name, $connectionDefinition); |
| 76 | 76 | } |
| 77 | - $container->setAlias('mongo.connection', 'mongo.connection.' . array_keys($connections)[0]); |
|
| 77 | + $container->setAlias('mongo.connection', 'mongo.connection.'.array_keys($connections)[0]); |
|
| 78 | 78 | } |
| 79 | 79 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Facile\MongoDbBundle\Services; |
| 6 | 6 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function createConnection(string $clientName, string $databaseName): Database |
| 36 | 36 | { |
| 37 | 37 | return $this->clientRegistry |
| 38 | - ->getClientForDatabase($clientName,$databaseName) |
|
| 38 | + ->getClientForDatabase($clientName, $databaseName) |
|
| 39 | 39 | ->selectDatabase($databaseName); |
| 40 | 40 | } |
| 41 | 41 | } |