Completed
Push — master ( 5bdc2f...5b14f1 )
by Alessandro
13:34 queued 09:40
created
src/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/DependencyInjection/MongoDbBundleExtension.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Services/ConnectionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Models/ConnectionConfiguration.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/FacileMongoDbBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.