Code Duplication    Length = 9-9 lines in 2 locations

src/model/UpdateQuery.php 2 locations

@@ 26-34 (lines=9) @@
23
     */
24
    public function setValue($column, $value)
25
    {
26
        if ($column instanceof Column) {
27
            $name = $this->getPlaceholder($column);
28
29
            $quoted_name = "{$column}";
30
        } else {
31
            $name = $column;
32
33
            $quoted_name = $this->driver->quoteName($name);
34
        }
35
36
        $this->assignments[$name] = "{$quoted_name} = :{$name}";
37
@@ 51-59 (lines=9) @@
48
     */
49
    public function setExpr($column, $expr)
50
    {
51
        if ($column instanceof Column) {
52
            $name = $this->getPlaceholder($column);
53
54
            $quoted_name = "{$column}";
55
        } else {
56
            $name = $column;
57
58
            $quoted_name = $this->driver->quoteName($name);
59
        }
60
61
        $this->assignments[$name] = "{$quoted_name} = {$expr}";
62