Code Duplication    Length = 12-12 lines in 2 locations

system/modules/Db/Db.php 2 locations

@@ 110-121 (lines=12) @@
107
        return false;
108
    }
109
110
    public function __get($name) {
111
        if (isset($this->connection->$name)) {
112
            return $this->connection->$name;
113
        }
114
        if (!is_object($this->curQuery)) {
115
            $this->curQuery = $this->newQuery();
116
        }
117
        if (isset($this->curQuery->$name)) {
118
            return $this->curQuery->$name;
119
        }
120
    }
121
122
    public function __set($name, $value) {
123
        if (isset($this->connection->$name)) {
124
            return $this->connection->$name = $value;
@@ 122-133 (lines=12) @@
119
        }
120
    }
121
122
    public function __set($name, $value) {
123
        if (isset($this->connection->$name)) {
124
            return $this->connection->$name = $value;
125
        }
126
        if (!is_object($this->curQuery)) {
127
            $this->curQuery = $this->newQuery();
128
        }
129
        if (isset($this->curQuery->$name)) {
130
            return $this->curQuery->$name = $value;
131
        }
132
    }
133
}