@@ -57,14 +57,14 @@ discard block |
||
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 |
||
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 |