Code Duplication    Length = 8-8 lines in 2 locations

system/Inji/Model/Builder.php 1 location

@@ 41-48 (lines=8) @@
38
        return $this;
39
    }
40
41
    public function where($col, $value = true, $comparision = '=', $concatenation = 'AND') {
42
        if (is_array($col) && !Tools::isAssoc($col)) {
43
            $this->whereArray[] = $col;
44
        } else {
45
            $this->whereArray[] = [$col, $value, $comparision, $concatenation];
46
        }
47
        return $this;
48
    }
49
50
    /**
51
     * @return \Inji\Db\DriverQuery

system/modules/Db/objects/InjiStorage/Query.php 1 location

@@ 30-37 (lines=8) @@
27
        $this->dbOptions[$name] = $value;
28
    }
29
30
    public function where($col, $value = true, $comparision = '=', $concatenation = 'AND') {
31
        if (is_array($col) && !Tools::isAssoc($col)) {
32
            $this->whereArray[] = $col;
33
        } else {
34
            $this->whereArray[] = [$col, $value, $comparision, $concatenation];
35
        }
36
        return $this;
37
    }
38
39
    public function setTable($tableName) {
40
        $this->table = $tableName;