Completed
Push — develop ( 87bb83...668304 )
by Kevin
20:04 queued 09:31
created
lib/MagiumConfigurationFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -147,6 +147,9 @@
 block discarded – undo
147 147
         $this->context = $context;
148 148
     }
149 149
 
150
+    /**
151
+     * @param string $path
152
+     */
150 153
     public function getEnvironmentVariableOverride($path)
151 154
     {
152 155
         $pathTranslated = 'MCM_' . str_replace('/', '_', strtoupper($path));
Please login to merge, or discard this patch.
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.