Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.php 1 location

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

lib/Mongo/MongoDB.php 1 location

@@ 98-104 (lines=7) @@
95
     * @param string $name
96
     * @param mixed $value
97
     */
98
    public function __set($name, $value)
99
    {
100
        if ($name === 'w' || $name === 'wtimeout') {
101
            $this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern());
102
            $this->createDatabaseObject();
103
        }
104
    }
105
106
    /**
107
     * (PECL mongo &gt;= 1.3.0)<br/>