Skip to content

Commit b90aaf8

Browse files
committed
Naming consistency with the spec
1 parent 8a261d0 commit b90aaf8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Collection.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ function __construct(Manager $manager, $ns, WriteConcern $wc = null, ReadPrefere
3939
$this->rp = $rp;
4040
}
4141

42-
function find(array $document = array(), array $options = array()) { /* {{{ {{{ */
43-
42+
function find(array $filter = array(), array $options = array()) { /* {{{ {{{ */
4443
$options = array_merge($this->getFindOptions(), $options);
4544

46-
$query = $this->_buildQuery($document, $options);
45+
$query = $this->_buildQuery($filter, $options);
4746

4847
$cursor = $this->manager->executeQuery($this->ns, $query, $this->rp);
4948

@@ -152,7 +151,7 @@ protected function _opQueryFlags($options) { /* {{{ */
152151

153152
return $flags;
154153
} /* }}} */
155-
protected function _buildQuery($document, $options) { /* {{{ */
154+
protected function _buildQuery($filter, $options) { /* {{{ */
156155
if ($options["comment"]) {
157156
$options["modifiers"]['$comment'] = $options["comment"];
158157
}
@@ -167,7 +166,7 @@ protected function _buildQuery($document, $options) { /* {{{ */
167166
$options["cursorFlags"] = $flags;
168167

169168

170-
$query = new Query($document, $options);
169+
$query = new Query($filter, $options);
171170

172171
return $query;
173172
} /* }}} */

0 commit comments

Comments
 (0)