Skip to content

Commit 39a01e0

Browse files
committed
Modified according to coding guidelines.
1 parent e1b3d04 commit 39a01e0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/Phpfastcache/Drivers/Mongodb/Config.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
*/

lib/Phpfastcache/Drivers/Mongodb/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)