Skip to content

Commit af46eea

Browse files
committed
Fix trailing commas
1 parent 030a3db commit af46eea

28 files changed

+81
-81
lines changed

source/includes/aggregation/aggregation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$aggregate = new MongoDB\Operation\Aggregate(
3333
$collection->getDatabaseName(),
3434
$collection->getCollectionName(),
35-
$pipeline
35+
$pipeline,
3636
);
3737

3838
$result = $collection->explain($aggregate);

source/includes/aggregation/atlas-search.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
Stage::project(
6262
borough: 1,
6363
cuisine: 1,
64-
name: 1
64+
name: 1,
6565
),
66-
Stage::limit(3)
66+
Stage::limit(3),
6767
);
6868

6969
$cursor = $collection->aggregate($pipeline);
@@ -87,11 +87,11 @@
8787
"maxGrams" => 7,
8888
"minGrams" => 3,
8989
"tokenization" => "edgeGram",
90-
"type" => "autocomplete"
90+
"type" => "autocomplete",
9191
],
92-
]
93-
]
94-
]]
92+
],
93+
],
94+
]],
9595
);
9696

9797
// Waits for the index to be updated.

source/includes/aggregation/vector-search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
'path' => 'plot_embedding',
2323
'numDimensions' => 1536,
2424
'similarity' => 'dotProduct',
25-
'quantization' => 'scalar'
26-
]]
25+
'quantization' => 'scalar',
26+
]],
2727
],
2828
['name' => 'vector', 'type' => 'vectorSearch'],
2929
);

source/includes/authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
// start-mongodb-aws-env-client
8080
$client = new MongoDB\Client(
8181
'mongodb://<hostname>:<port>',
82-
['authMechanism' => 'MONGODB-AWS']
82+
['authMechanism' => 'MONGODB-AWS'],
8383
);
8484
// end-mongodb-aws-env-client
8585

source/includes/builders.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
coordinates: [-79.9, 9.3],
2828
),
2929
maxDistance: 10000,
30-
)
31-
)
30+
),
31+
),
3232
);
3333

3434
// Prints matching documents
@@ -44,7 +44,7 @@
4444
Query::or(
4545
Query::query(feature_type: Query::regex('nondangerous$', '')),
4646
Query::query(depth: Query::gt(10.0)),
47-
)
47+
),
4848
);
4949

5050
// Prints number of deleted documents
@@ -76,7 +76,7 @@
7676
// Opens the change stream
7777
$changeStream = $collection->watch(
7878
$pipeline,
79-
['fullDocument' => MongoDB\Operation\Watch::FULL_DOCUMENT_UPDATE_LOOKUP]
79+
['fullDocument' => MongoDB\Operation\Watch::FULL_DOCUMENT_UPDATE_LOOKUP],
8080
);
8181

8282
// Prints change events based on the pipeline specifications

source/includes/connect/atlas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Create a MongoDB client with server API options
77
$client = new MongoDB\Client($uri, [], [
8-
'serverApi' => new MongoDB\Driver\ServerApi('1')
8+
'serverApi' => new MongoDB\Driver\ServerApi('1'),
99
]);
1010

1111
// Ping the server to verify that the connection works

source/includes/connect/ca-dir.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
];
88

99
$driverOptions = [
10-
'ca_dir' => '/path/to/search/'
10+
'ca_dir' => '/path/to/search/',
1111
];
1212

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

source/includes/connect/connection-options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Replace the placeholder with the actual path to the certificate key file
1717
$uriOptions = [
1818
'tls' => true,
19-
'tlsCertificateKeyFile' => '/path/to/file.pem'
19+
'tlsCertificateKeyFile' => '/path/to/file.pem',
2020
];
2121

2222
// Create a MongoDB client with the URI and options

source/includes/connect/crl-file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
];
88

99
$driverOptions = [
10-
'crl_file' => '/path/to/file.pem'
10+
'crl_file' => '/path/to/file.pem',
1111
];
1212

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

source/includes/databases-collections/time-series.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'timeField' => 'timestamp',
1414
'metaField' => 'location',
1515
'granularity' => 'minutes',
16-
]
16+
],
1717
];
1818

1919
$db->createCollection('sept2023', $options);
@@ -43,6 +43,6 @@
4343
'location' => 'New York City',
4444
'timestamp' => new MongoDB\BSON\UTCDateTime(1695594780000),
4545
],
46-
]
46+
],
4747
);
4848
// end-insert-ts

0 commit comments

Comments
 (0)