Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
17 | public function updateAttributes(&$attributes) |
||
18 | { |
||
19 | if (Controller::curr() instanceof ContentController && |
||
20 | Controller::curr()->data()->Classname == 'DonationProduct' |
||
21 | ) { |
||
22 | if (preg_match('/^(product_id)/', $this->owner->getName())) { |
||
23 | $attributes['h:name'] = $attributes['name']; |
||
24 | unset($attributes['name']); |
||
25 | } |
||
29 |