Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function process() |
||
16 | { |
||
17 | $this->initWrapper($this->setLocalName()); |
||
18 | |||
19 | $urlSanitise = $this->soteria->sanitise(); |
||
20 | $urlSanitise->removeUrl($this->getReference()); |
||
21 | |||
22 | $this->setOutput($urlSanitise->result()->getOutput()); |
||
23 | |||
24 | if (!$urlSanitise->result()->isValid()) { |
||
25 | $this->setScore($this->getRealScore()); |
||
26 | |||
27 | } |
||
28 | $this->setResult(); |
||
29 | } |
||
36 | } |