Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoGridFS.php 1 location

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

lib/Mongo/MongoCollection.php 1 location

@@ 444-450 (lines=7) @@
441
     * @param array $fields Fields of the results to return.
442
     * @return MongoCursor
443
     */
444
    public function find(array $query = [], array $fields = [])
445
    {
446
        $cursor = new MongoCursor($this->db->getConnection(), (string) $this, $query, $fields);
447
        $cursor->setReadPreference($this->getReadPreference());
448
449
        return $cursor;
450
    }
451
452
    /**
453
     * Retrieve a list of distinct values for the given key across a collection