| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | private function setRealScore($data = []) |
||
| 51 | { |
||
| 52 | |||
| 53 | $sanitise = $this->soteria->sanitise(true); |
||
| 54 | $this->score = $this->getRealScore(); |
||
| 55 | |||
| 56 | if (isset($data[1])) { |
||
| 57 | $sanitise->disinfect($data[1], 'int'); |
||
| 58 | $this->score = (int)$sanitise->result()->getOutput(); |
||
| 59 | } |
||
| 60 | |||
| 61 | if ($this->score > 0) { |
||
| 62 | $this->detected++; |
||
| 63 | } |
||
| 66 | } |