| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 13 | 
| CRAP Score | 3 | 
| Changes | 5 | ||
| Bugs | 0 | Features | 2 | 
| 1 | <?php | ||
| 59 | 3 |     public function run() { | |
| 60 | 3 | $this->generator->begin_ruleset($this->ruleset); | |
| 61 | 3 |         foreach ($this->ruleset->rules() as $rule) { | |
| 62 | 3 |             $this->log->info("checking: ".$rule->pprint()); | |
| 63 | 3 | $this->generator->begin_rule($rule); | |
| 64 | 3 | $stmt = $rule->compile($this->query); | |
| 65 | 3 |             while ($row = $stmt->fetch()) { | |
| 66 | 2 | $this->generator->report_violation($rule->to_violation($row)); | |
| 67 | 2 | } | |
| 68 | 3 | $this->generator->end_rule($rule); | |
| 69 | 3 | } | |
| 70 | 3 | $this->generator->end_ruleset($this->ruleset); | |
| 71 | 3 | } | |
| 72 | } | ||
| 73 |