| @@ 87-95 (lines=9) @@ | ||
| 84 | ->execute(); |
|
| 85 | $rule_id = (int)$this->connection->lastInsertId(); |
|
| 86 | } |
|
| 87 | else { |
|
| 88 | $this->builder() |
|
| 89 | ->update($this->rule_table()) |
|
| 90 | ->set("last_seen", "?") |
|
| 91 | ->where("id = ?") |
|
| 92 | ->setParameter(0, $this->current_run_id) |
|
| 93 | ->setParameter(1, $rule_id) |
|
| 94 | ->execute(); |
|
| 95 | } |
|
| 96 | foreach ($rule->variables() as $variable) { |
|
| 97 | $this->upsert_variable($variable); |
|
| 98 | } |
|
| @@ 134-142 (lines=9) @@ | ||
| 131 | ->execute(); |
|
| 132 | $violation_id = (int)$this->connection->lastInsertId(); |
|
| 133 | } |
|
| 134 | else { |
|
| 135 | $this->builder() |
|
| 136 | ->update($this->violation_table()) |
|
| 137 | ->set("last_seen", "?") |
|
| 138 | ->where("id = ?") |
|
| 139 | ->setParameter(0, $this->current_run_id) |
|
| 140 | ->setParameter(1, $violation_id) |
|
| 141 | ->execute(); |
|
| 142 | } |
|
| 143 | ||
| 144 | $this->builder() |
|
| 145 | ->insert($this->violation_location_table()) |
|