Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.php 1 location

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

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