Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.php 1 location

@@ 465-471 (lines=7) @@
462
     * @param array $fields Fields of the results to return.
463
     * @return MongoCursor
464
     */
465
    public function find(array $query = [], array $fields = [])
466
    {
467
        $cursor = new MongoCursor($this->db->getConnection(), (string) $this, $query, $fields);
468
        $cursor->setReadPreference($this->getReadPreference());
469
470
        return $cursor;
471
    }
472
473
    /**
474
     * Retrieve a list of distinct values for the given key across a collection

lib/Mongo/MongoGridFS.php 1 location

@@ 128-134 (lines=7) @@
125
     * @param array $options Options for the find command
126
     * @return MongoGridFSCursor A MongoGridFSCursor
127
     */
128
    public function find(array $query = [], array $fields = [])
129
    {
130
        $cursor = new MongoGridFSCursor($this, $this->db->getConnection(), (string) $this, $query, $fields);
131
        $cursor->setReadPreference($this->getReadPreference());
132
133
        return $cursor;
134
    }
135
136
    /**
137
     * Returns a single file matching the criteria