Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoDB.php 1 location

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

lib/Mongo/MongoCollection.php 1 location

@@ 108-114 (lines=7) @@
105
     * @param string $name
106
     * @param mixed $value
107
     */
108
    public function __set($name, $value)
109
    {
110
        if ($name === 'w' || $name === 'wtimeout') {
111
            $this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern());
112
            $this->createCollectionObject();
113
        }
114
    }
115
116
    /**
117
     * @link http://www.php.net/manual/en/mongocollection.aggregate.php