Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoDB.php 1 location

@@ 109-115 (lines=7) @@
106
     * @param string $name
107
     * @param mixed $value
108
     */
109
    public function __set($name, $value)
110
    {
111
        if ($name === 'w' || $name === 'wtimeout') {
112
            $this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern());
113
            $this->createDatabaseObject();
114
        }
115
    }
116
117
    /**
118
     * (PECL mongo &gt;= 1.3.0)<br/>

lib/Mongo/MongoCollection.php 1 location

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