Skip to content

Commit fb1f8e0

Browse files
committed
Fix arrays
1 parent 3bef185 commit fb1f8e0

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

source/includes/connect/ca-dir.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
$uri = 'mongodb://<hostname>:<port>';
44

5-
$uriOptions = [
6-
'tls' => true,
7-
];
8-
9-
$driverOptions = [
10-
'ca_dir' => '/path/to/search/',
11-
];
5+
$uriOptions = ['tls' => true];
6+
$driverOptions = ['ca_dir' => '/path/to/search/'];
127

138
$client = new MongoDB\Client($uri, $uriOptions, $driverOptions);

source/includes/connect/crl-file.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
$uri = 'mongodb://<hostname>:<port>';
44

5-
$uriOptions = [
6-
'tls' => true,
7-
];
8-
9-
$driverOptions = [
10-
'crl_file' => '/path/to/file.pem',
11-
];
5+
$uriOptions = ['tls' => true];
6+
$driverOptions = ['crl_file' => '/path/to/file.pem'];
127

138
$client = new MongoDB\Client($uri, $uriOptions, $driverOptions);

source/includes/usage-examples/index-code-examples.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function toJSON(object $document): string
6767

6868
// start-geo
6969
$indexName = $collection->createIndex(
70-
[ '<GeoJSON object field>' => '2dsphere'],
70+
['<GeoJSON object field>' => '2dsphere'],
7171
);
7272
// end-geo
7373

0 commit comments

Comments
 (0)