Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.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->createCollectionObject();
114
        }
115
    }
116
117
    /**
118
     * @link http://www.php.net/manual/en/mongocollection.aggregate.php

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/>