Skip to content

Commit 165737f

Browse files
committed
Update rename documentation, fix coding standard errors
1 parent 54562a3 commit 165737f

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

docs/reference/method/MongoDBCollection-rename.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ The output would then resemble::
6363

6464
object(MongoDB\Model\BSONDocument)#9 (1) {
6565
["storage":"ArrayObject":private]=>
66-
array(3) {
67-
["ns"]=>
68-
string(16) "test.restaurants"
69-
["nIndexesWas"]=>
70-
int(3)
66+
array(1) {
7167
["ok"]=>
7268
float(1)
7369
}

docs/reference/method/MongoDBDatabase-renameCollection.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ The output would then resemble::
6262

6363
object(MongoDB\Model\BSONDocument)#8 (1) {
6464
["storage":"ArrayObject":private]=>
65-
array(3) {
66-
["ns"]=>
67-
string(10) "test.restaurants"
68-
["nIndexesWas"]=>
69-
int(1)
65+
array(1) {
7066
["ok"]=>
7167
float(1)
7268
}

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ public function mapReduce(JavascriptInterface $map, JavascriptInterface $reduce,
10101010
*
10111011
* @see RenameCollection::__construct() for supported options
10121012
* @param string $toNamespace New namespace of the collection
1013-
* @param array $options Additional options
1013+
* @param array $options Additional options
10141014
* @return array|object Command result document
10151015
* @throws UnsupportedException if options are not supported by the selected server
10161016
* @throws InvalidArgumentException for parameter/option parsing errors

src/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ public function modifyCollection($collectionName, array $collectionOptions, arra
476476
*
477477
* @see RenameCollection::__construct() for supported options
478478
* @param string $fromNamespace Namespace of the collection to rename
479-
* @param string $toNamespace New namespace of the collection
480-
* @param array $options Additional options
479+
* @param string $toNamespace New namespace of the collection
480+
* @param array $options Additional options
481481
* @return array|object Command result document
482482
* @throws UnsupportedException if options are unsupported on the selected server
483483
* @throws InvalidArgumentException for parameter/option parsing errors

src/Operation/RenameCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ class RenameCollection implements Executable
7878
* exception at execution time if used.
7979
*
8080
* @param string $fromNamespace Namespace of the collection to rename
81-
* @param string $toNamespace New namespace of the collection
82-
* @param array $options Command options
81+
* @param string $toNamespace New namespace of the collection
82+
* @param array $options Command options
8383
* @throws InvalidArgumentException for parameter/option parsing errors
8484
*/
8585
public function __construct($fromNamespace, $toNamespace, array $options = [])

0 commit comments

Comments
 (0)