Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
27 | public function addWrapperAttribute(string $key, string $value) |
||
28 | { |
||
29 | if ($key == 'class' && isset($this->options['wrapperAttributes']['class'])) { |
||
30 | $this->options['wrapperAttributes']['class'] .= ' ' . $value; |
||
31 | } else { |
||
32 | $this->options['wrapperAttributes'][$key] = $value; |
||
33 | } |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
45 |