@@ -20,12 +20,12 @@ |
||
| 20 | 20 | $rootNode |
| 21 | 21 | ->beforeNormalization() |
| 22 | 22 | ->ifTrue( |
| 23 | - function ($v) { |
|
| 23 | + function($v) { |
|
| 24 | 24 | return is_array($v) && !array_key_exists('connections', $v); |
| 25 | 25 | } |
| 26 | 26 | ) |
| 27 | 27 | ->then( |
| 28 | - function ($v) { |
|
| 28 | + function($v) { |
|
| 29 | 29 | $excludedKeys = ['default_connection']; |
| 30 | 30 | $connection = []; |
| 31 | 31 | foreach ($v as $key => $value) { |
@@ -27,8 +27,7 @@ |
||
| 27 | 27 | $loader->load('factory.xml'); |
| 28 | 28 | // If the default connection if not defined, get the first one. |
| 29 | 29 | $defaultConnection = isset($config['default_connection']) ? |
| 30 | - $config['default_connection'] : |
|
| 31 | - key($config['connections']); |
|
| 30 | + $config['default_connection'] : key($config['connections']); |
|
| 32 | 31 | $this->buildConnections($container, $config); |
| 33 | 32 | $this->setDefaultConnectionAlias($container, $defaultConnection); |
| 34 | 33 | |
@@ -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\Models; |
| 6 | 6 | |
@@ -92,8 +92,7 @@ discard block |
||
| 92 | 92 | public function getConnectionUri(): string |
| 93 | 93 | { |
| 94 | 94 | $credentials = $this->hasCredentials() ? |
| 95 | - sprintf('%s:%s@', $this->username, $this->password) : |
|
| 96 | - ''; |
|
| 95 | + sprintf('%s:%s@', $this->username, $this->password) : ''; |
|
| 97 | 96 | |
| 98 | 97 | $uri = sprintf( |
| 99 | 98 | 'mongodb://%s%s:%d/%s', |
@@ -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 | |