Passed
Push — develop ( 5151a8...98cf0c )
by Kevin
02:22
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
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
     public function getMongoDsnString()
61 61
     {
62 62
         $config = $this->getDatabaseConfiguration();
63
-        $dsn = 'mongodb://';  //[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]';
63
+        $dsn = 'mongodb://'; //[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]';
64 64
         $at = false;
65 65
         if (!empty($config['username'])) {
66 66
             $dsn .= $config['username'];
67 67
             $at = true;
68 68
         }
69 69
         if (!empty($config['password'])) {
70
-            $dsn .= ':'.$config['password'];
70
+            $dsn .= ':' . $config['password'];
71 71
             $at = true;
72 72
         }
73 73
         if ($at) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $config = $this->getDatabaseConfiguration();
89 89
         $dsn = $this->getMongoDsnString();
90 90
         $client = new Client($dsn);
91
-        $collection = empty($config['table'])?Mongo::TABLE:$config['table'];
91
+        $collection = empty($config['table']) ?Mongo::TABLE : $config['table'];
92 92
         return new Mongo($client->selectCollection($config['database'], $collection));
93 93
     }
94 94
 
Please login to merge, or discard this patch.