File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
- require 'vendor/autoload.php ' ;
2
+ require 'vendor/autoload.php ' ;
3
3
4
4
// start-to-json
5
5
function toJSON (object $ document ): string
Original file line number Diff line number Diff line change 1
1
<?php
2
- require 'vendor/autoload.php ' ;
2
+ require 'vendor/autoload.php ' ;
3
3
4
4
// start-to-json
5
5
function toJSON (object $ document ): string
@@ -19,7 +19,7 @@ function toJSON(object $document): string
19
19
// start-update-for-change-stream
20
20
$ result = $ collection ->updateOne (
21
21
['name ' => 'Blarney Castle ' ],
22
- ['$set ' => ['cuisine ' => 'Irish ' ]]
22
+ ['$set ' => ['cuisine ' => 'Irish ' ]],
23
23
);
24
24
// end-update-for-change-stream
25
25
Original file line number Diff line number Diff line change 1
1
<?php
2
- require 'vendor/autoload.php ' ;
2
+ require 'vendor/autoload.php ' ;
3
3
4
4
// start-to-json
5
5
function toJSON (object $ document ): string
@@ -40,6 +40,6 @@ function toJSON(object $document): string
40
40
// start-update-for-change-stream
41
41
$ result = $ collection ->updateOne (
42
42
['name ' => 'Blarney Castle ' ],
43
- ['$set ' => ['cuisine ' => 'Irish ' ]]
43
+ ['$set ' => ['cuisine ' => 'Irish ' ]],
44
44
);
45
45
// end-update-for-change-stream
Original file line number Diff line number Diff line change 154
154
// start-bulk-client-options
155
155
$ bulkWrite = MongoDB \ClientBulkWrite::createWithCollection (
156
156
$ restaurantCollection ,
157
- ['ordered ' => false ]
157
+ ['ordered ' => false ],
158
158
);
159
159
// end-bulk-client-options
160
160
You can’t perform that action at this time.
0 commit comments