File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
lib/Phpfastcache/Drivers/Mongodb Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,7 @@ public function getOptions(): array
210210 }
211211
212212 /**
213- * https://docs.mongodb.com/manual/reference/connection-string/#connections-connection-options
214- *
213+ * @see https://docs.mongodb.com/manual/reference/connection-string/#connections-connection-options
215214 * @param array $options
216215 * @return Config
217216 */
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ protected function buildConnectionURI($databaseName = ''): string
233233 $ password = $ this ->getConfig ()->getPassword ();
234234
235235 if ( \count ($ servers ) > 0 ){
236- $ host = array_reduce ($ servers , function ($ carry , $ data ){
236+ $ host = \ array_reduce ($ servers , function ($ carry , $ data ){
237237 $ carry .= ($ carry === '' ? '' : ', ' ).$ data ['host ' ].': ' .$ data ['port ' ];
238238 return $ carry ;
239239 }, '' );
@@ -248,7 +248,7 @@ protected function buildConnectionURI($databaseName = ''): string
248248 $ host ,
249249 ($ port !== 27017 && $ port !== false ? ": {$ port }" : '' ),
250250 ($ databaseName ? "/ {$ databaseName }" : '' ),
251- (count ($ options ) > 0 ? '? ' .http_build_query ($ options ) : '' ),
251+ (\ count ($ options ) > 0 ? '? ' .\ http_build_query ($ options ) : '' ),
252252 ]);
253253 }
254254
You can’t perform that action at this time.
0 commit comments