Completed
Push — develop ( bf5641...87bb83 )
by Kevin
12:46 queued 01:21
created
lib/Config/BuilderFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
     public function getMongoDsnString()
58 58
     {
59 59
         $config = $this->getDatabaseConfiguration();
60
-        $dsn = 'mongodb://';  //[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]';
60
+        $dsn = 'mongodb://'; //[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]';
61 61
         $at = false;
62 62
         if (isset($config['username'])) {
63 63
             $dsn .= $config['username'];
64 64
             $at = true;
65 65
         }
66 66
         if (isset($config['password'])) {
67
-            $dsn .= ':'.$config['password'];
67
+            $dsn .= ':' . $config['password'];
68 68
             $at = true;
69 69
         }
70 70
         if ($at) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $config = $this->getDatabaseConfiguration();
83 83
         $dsn = $this->getMongoDsnString();
84 84
         $client = new Client($dsn);
85
-        $collection = isset($config['table'])?$config['table']:Mongo::TABLE;
85
+        $collection = isset($config['table']) ? $config['table'] : Mongo::TABLE;
86 86
         return new Mongo($client->selectCollection($config['database'], $collection));
87 87
     }
88 88
 
Please login to merge, or discard this patch.