Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 2 | public function process() |
|
16 | { |
||
17 | 2 | $this->initWrapper($this->setLocalName()); |
|
18 | |||
19 | 2 | $xss = $this->soteria->xss(true); |
|
20 | 2 | $xss->clean($this->getReference()); |
|
21 | 2 | ||
22 | 1 | if (!$xss->result()->isValid()) { |
|
23 | 1 | $this->setScore($this->getRealScore()); |
|
24 | $this->setOutput($xss->result()->getOutput()); |
||
25 | $this->setResult(); |
||
26 | 2 | } |
|
35 | } |