Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.php 1 location

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

lib/Mongo/MongoGridFS.php 1 location

@@ 111-117 (lines=7) @@
108
     * @param array $options Options for the find command
109
     * @return MongoGridFSCursor A MongoGridFSCursor
110
     */
111
    public function find(array $query = [], array $fields = [])
112
    {
113
        $cursor = new MongoGridFSCursor($this, $this->db->getConnection(), (string) $this, $query, $fields);
114
        $cursor->setReadPreference($this->getReadPreference());
115
116
        return $cursor;
117
    }
118
119
    /**
120
     * Returns a single file matching the criteria