Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function check($value): bool |
||
20 | { |
||
21 | 2 | $anotherAttribute = $this->getAttribute()->getKey() . '_confirmation'; |
|
22 | 2 | $anotherValue = $this->getAttribute()->getValue($anotherAttribute); |
|
23 | |||
24 | 2 | $this->setParameterText('field', $this->getAttributeAlias($anotherAttribute)); |
|
25 | |||
26 | 2 | return $value === $anotherValue; |
|
27 | } |
||
29 |