Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.php 1 location

@@ 112-118 (lines=7) @@
109
     * @param string $name
110
     * @param mixed $value
111
     */
112
    public function __set($name, $value)
113
    {
114
        if ($name === 'w' || $name === 'wtimeout') {
115
            $this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern());
116
            $this->createCollectionObject();
117
        }
118
    }
119
120
    /**
121
     * Perform an aggregation using the aggregation framework

lib/Mongo/MongoDB.php 1 location

@@ 113-119 (lines=7) @@
110
     * @param string $name
111
     * @param mixed $value
112
     */
113
    public function __set($name, $value)
114
    {
115
        if ($name === 'w' || $name === 'wtimeout') {
116
            $this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern());
117
            $this->createDatabaseObject();
118
        }
119
    }
120
121
    /**
122
     * Returns information about collections in this database