Skip to content

Commit fb6ecc7

Browse files
committed
code fixes
1 parent ead4cec commit fb6ecc7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

source/includes/bson/Person.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class Person implements MongoDB\BSON\Persistable
88
private \MongoDB\BSON\ObjectId $id;
99
private \MongoDB\BSON\UTCDateTime $createdAt;
1010

11-
public function __construct(private string $name) {
11+
public function __construct(private string $name)
12+
{
1213
$this->id = new \MongoDB\BSON\ObjectId();
1314
$this->createdAt = new \MongoDB\BSON\UTCDateTime();
1415
}

source/includes/extended-json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030

3131
$decodedJson = json_decode($ejsonStr, true);
3232
print_r($decodedJson);
33-
// end-read-extended
33+
// end-read-extended

source/includes/monitoring-logging/monitor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public function __construct(private $stream)
3939
{
4040
}
4141

42-
public function serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $event): void {
42+
public function serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $event): void
43+
{
4344
fprintf(
4445
$this->stream,
4546
'Server opening on %s:%s\n',

0 commit comments

Comments
 (0)