Code Duplication    Length = 7-7 lines in 2 locations

lib/Mongo/MongoCollection.php 1 location

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

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