Skip to content

Commit f53d7b1

Browse files
jmikolaalcaeus
authored andcommitted
Remove trailing comma in parameter lists (requires PHP 7.3+)
1 parent 310a6e8 commit f53d7b1

8 files changed

+8
-8
lines changed

tests/Operation/CountDocumentsFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function () use ($filter): void {
1919
$operation = new CountDocuments(
2020
$this->getDatabaseName(),
2121
$this->getCollectionName(),
22-
$filter,
22+
$filter
2323
);
2424

2525
$operation->execute($this->getPrimaryServer());

tests/Operation/CountFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function () use ($filter): void {
2020
$operation = new Count(
2121
$this->getDatabaseName(),
2222
$this->getCollectionName(),
23-
$filter,
23+
$filter
2424
);
2525

2626
$operation->execute($this->getPrimaryServer());

tests/Operation/DeleteFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function () use ($filter): void {
3737
$this->getDatabaseName(),
3838
$this->getCollectionName(),
3939
$filter,
40-
1,
40+
1
4141
);
4242

4343
$operation->execute($this->getPrimaryServer());

tests/Operation/DistinctFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function () use ($filter): void {
2424
$this->getDatabaseName(),
2525
$this->getCollectionName(),
2626
'x',
27-
$filter,
27+
$filter
2828
);
2929

3030
$operation->execute($this->getPrimaryServer());

tests/Operation/FindAndModifyFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function () use ($query): void {
2727
$operation = new FindAndModify(
2828
$this->getDatabaseName(),
2929
$this->getCollectionName(),
30-
['query' => $query, 'remove' => true],
30+
['query' => $query, 'remove' => true]
3131
);
3232

3333
$operation->execute($this->getPrimaryServer());

tests/Operation/FindFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function () use ($filter): void {
2424
$operation = new Find(
2525
$this->getDatabaseName(),
2626
$this->getCollectionName(),
27-
$filter,
27+
$filter
2828
);
2929

3030
$operation->execute($this->getPrimaryServer());

tests/Operation/InsertOneFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function () use ($document, $expectedDocument): void {
3636
$operation = new InsertOne(
3737
$this->getDatabaseName(),
3838
$this->getCollectionName(),
39-
$document,
39+
$document
4040
);
4141

4242
$result = $operation->execute($this->getPrimaryServer());

tests/Operation/UpdateFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function () use ($filter): void {
4040
$this->getDatabaseName(),
4141
$this->getCollectionName(),
4242
$filter,
43-
['$set' => ['x' => 1]],
43+
['$set' => ['x' => 1]]
4444
);
4545

4646
$operation->execute($this->getPrimaryServer());

0 commit comments

Comments
 (0)