Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 2 | public function isFieldEqual($attributeId, $value, $extraData = []) { |
|
16 | 2 | $attributeManager = $this->comparisonManager->getAttributeManager(); |
|
17 | // Create an attribute out of the extra data we have and compare its retrieved value to the expected one |
||
18 | 2 | return $attributeManager->retrieveAttribute( |
|
19 | 2 | $attributeManager->getAttribute($attributeId), |
|
20 | 2 | $extraData['user'] |
|
21 | 2 | ) === $value; |
|
22 | } |
||
23 | } |
||
24 |