Completed
Pull Request — master (#5)
by Alessandro
04:33
created
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.
src/Capsule/Client.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/Capsule/Database.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/Capsule/Collection.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/DependencyInjection/MongoDbBundleExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Services/ClientRegistry.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.