Skip to content

Commit c41ab44

Browse files
committed
RM PR fixes 1
1 parent b5c090e commit c41ab44

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

source/reference/method/MongoDBClient-getCollection.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Definition
1414

1515
.. phpmethod:: MongoDB\Client::getCollection()
1616

17-
Selects a collection on the server. This method is an alias for
17+
Gets access to a collection on the server. This method is an alias for
1818
:phpmethod:`MongoDB\Client::selectCollection()` and will replace it in
1919
a future release.
2020

@@ -30,10 +30,10 @@ Parameters
3030
----------
3131

3232
``$databaseName`` : string
33-
The name of the database containing the collection to select.
33+
The name of the database containing the collection to access.
3434

3535
``$collectionName`` : string
36-
The name of the collection to select.
36+
The name of the collection to access.
3737

3838
``$options`` : array
3939
An array specifying the desired options.
@@ -93,7 +93,7 @@ overridden by using the ``$options`` parameter.
9393
Example
9494
-------
9595

96-
The following example selects the ``users`` collection in the ``test`` database:
96+
The following example gets access to the ``users`` collection in the ``test`` database:
9797

9898
.. code-block:: php
9999

@@ -103,7 +103,7 @@ The following example selects the ``users`` collection in the ``test`` database:
103103

104104
$collection = $client->getCollection('test', 'users');
105105

106-
The following example selects the ``users`` collection in the ``test`` database
106+
The following example gets access to the ``users`` collection in the ``test`` database
107107
with a custom read preference:
108108

109109
.. code-block:: php

source/reference/method/MongoDBClient-getDatabase.txt

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,53 +13,53 @@ Definition
1313

1414
.. phpmethod:: MongoDB\Client::getDatabase()
1515

16-
Selects a database on the server. This method is an alias for
16+
Gets access to a database on the server. This method is an alias for
1717
:phpmethod:`MongoDB\Client::selectDatabase()` and will replace it in
1818
a future release.
1919

2020
.. code-block:: php
2121

22-
function getDatabase(
23-
string $databaseName,
24-
array $options = []
25-
): MongoDB\Database
22+
function getDatabase(
23+
string $databaseName,
24+
array $options = []
25+
): MongoDB\Database
2626

2727
Parameters
2828
----------
2929

3030
``$databaseName`` : string
31-
The name of the database to select.
31+
The name of the database to access.
3232

3333
``$options`` : array
3434
An array specifying the desired options.
3535

3636
.. list-table::
37-
:header-rows: 1
38-
:widths: 20 20 80
37+
:header-rows: 1
38+
:widths: 20 20 80
3939

40-
* - Name
41-
- Type
42-
- Description
40+
* - Name
41+
- Type
42+
- Description
4343

44-
* - readConcern
45-
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
46-
- The default read concern to use for database operations. Defaults to
47-
the client's read concern.
44+
* - readConcern
45+
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
46+
- The default read concern to use for database operations. Defaults to
47+
the client's read concern.
4848

49-
* - readPreference
50-
- :php:`MongoDB\Driver\ReadPreference <class.mongodb-driver-readpreference>`
51-
- The default read preference to use for database operations. Defaults to
52-
the client's read preference.
49+
* - readPreference
50+
- :php:`MongoDB\Driver\ReadPreference <class.mongodb-driver-readpreference>`
51+
- The default read preference to use for database operations. Defaults to
52+
the client's read preference.
5353

54-
* - typeMap
55-
- array
56-
- The default type map to use for database operations. Defaults to the
57-
client's type map.
54+
* - typeMap
55+
- array
56+
- The default type map to use for database operations. Defaults to the
57+
client's type map.
5858

59-
* - writeConcern
60-
- :php:`MongoDB\Driver\WriteConcern <class.mongodb-driver-writeconcern>`
61-
- The default write concern to use for database operations. Defaults to
62-
the client's write concern.
59+
* - writeConcern
60+
- :php:`MongoDB\Driver\WriteConcern <class.mongodb-driver-writeconcern>`
61+
- The default write concern to use for database operations. Defaults to
62+
the client's write concern.
6363

6464
Return Values
6565
-------------
@@ -81,7 +81,7 @@ by using the ``$options`` parameter.
8181
Example
8282
-------
8383

84-
The following example selects the ``test`` database:
84+
The following example gets access to the ``test`` database:
8585

8686
.. code-block:: php
8787

@@ -91,7 +91,7 @@ The following example selects the ``test`` database:
9191

9292
$db = $client->getDatabase('test');
9393

94-
The following examples selects the ``test`` database with a custom read
94+
The following examples gets access to the ``test`` database with a custom read
9595
preference:
9696

9797
.. code-block:: php
@@ -101,10 +101,10 @@ preference:
101101
$client = new MongoDB\Client;
102102

103103
$db = $client->getDatabase(
104-
'test',
105-
[
106-
'readPreference' => new MongoDB\Driver\ReadPreference('primaryPreferred'),
107-
]
104+
'test',
105+
[
106+
'readPreference' => new MongoDB\Driver\ReadPreference('primaryPreferred'),
107+
]
108108
);
109109

110110
See Also

source/reference/method/MongoDBDatabase-getCollection.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Definition
1414

1515
.. phpmethod:: MongoDB\Database::getCollection()
1616

17-
Selects a collection within the database. This method is an alias for
17+
Gets access to a collection within the database. This method is an alias for
1818
:phpmethod:`MongoDB\Database::selectCollection()` and will replace it in
1919
a future release.
2020

@@ -29,7 +29,7 @@ Parameters
2929
----------
3030

3131
``$collectionName`` : string
32-
The name of the collection to select.
32+
The name of the collection to access.
3333

3434
``$options`` : array
3535
An array specifying the desired options.
@@ -89,7 +89,7 @@ overridden by using the ``$options`` parameter.
8989
Example
9090
-------
9191

92-
The following example selects the ``users`` collection in the ``test`` database:
92+
The following example gets access to the ``users`` collection in the ``test`` database:
9393

9494
.. code-block:: php
9595

@@ -99,7 +99,7 @@ The following example selects the ``users`` collection in the ``test`` database:
9999

100100
$collection = $db->getCollection('users');
101101

102-
The following example selects the ``users`` collection in the ``test``
102+
The following example gets access to the ``users`` collection in the ``test``
103103
database with a custom read preference:
104104

105105
.. code-block:: php

0 commit comments

Comments
 (0)