Code Duplication    Length = 9-9 lines in 2 locations

src/App/ResultDB.php 2 locations

@@ 86-94 (lines=9) @@
83
                ->execute();
84
            $rule_id = (int)$this->connection->lastInsertId();
85
        }
86
        else {
87
            $this->builder()
88
                ->update($this->rule_table())
89
                ->set("last_seen", "?")
90
                ->where("id = ?")
91
                ->setParameter(0, $this->current_run_id)
92
                ->setParameter(1, $rule_id)
93
                ->execute();
94
        }
95
        $this->current_rule_id = $rule_id;
96
    }
97
@@ 130-138 (lines=9) @@
127
                ->execute();
128
            $violation_id = (int)$this->connection->lastInsertId();
129
        }
130
        else {
131
            $this->builder()
132
                ->update($this->violation_table())
133
                ->set("last_seen", "?")
134
                ->where("id = ?")
135
                ->setParameter(0, $this->current_run_id)
136
                ->setParameter(1, $violation_id)
137
                ->execute();
138
        }
139
140
        $this->builder()
141
            ->insert($this->violation_location_table())