File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException ('The MONGODB_URI environment variable is not set ' );
8
8
$ client = new Client ($ uri );
9
- $ planets = $ client ->sample_guides ->planets
10
- ->find (
11
- [],
12
- ['sort ' => ['orderFromSun ' => 1 ]],
13
- );
9
+ $ planets = $ client
10
+ ->selectCollection ('sample_guides ' , 'planets ' )
11
+ ->find ([], ['sort ' => ['orderFromSun ' => 1 ]]);
14
12
15
13
?>
16
14
<!DOCTYPE html>
Original file line number Diff line number Diff line change 83
83
<exclude name =" SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountAfterControlStructure" >
84
84
<exclude-pattern >docs/examples/*/index.php</exclude-pattern >
85
85
</exclude >
86
- <exclude name =" Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps" >
87
- <exclude-pattern >docs/examples/*/index.php</exclude-pattern >
88
- </exclude >
89
86
</rule >
90
87
91
88
You can’t perform that action at this time.
0 commit comments