Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoDB.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->createDatabaseObject();
117
        }
118
    }
119
120
    /**
121
     * Returns information about collections in this database

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