Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function validate($value, Constraint $constraint) |
||
20 | { |
||
21 | $match = true; |
||
22 | $code = $this->checker->check($value); |
||
23 | if ($code === URLChecker::URL_NOT_FOUND) { |
||
24 | $match = false; |
||
25 | } |
||
26 | |||
27 | if ($match === false) { |
||
28 | $this->context->buildViolation($constraint->message) |
||
29 | ->setParameter('%string%', $value) |
||
30 | ->addViolation(); |
||
31 | } |
||
32 | } |
||
33 | } |
||
34 |
This check marks private properties in classes that are never used. Those properties can be removed.