Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 225 | protected function preparePlaceholderInInputAttributes(array &$attributes): void |
|
32 | { |
||
33 | if ( |
||
34 | 225 | $this->usePlaceholder |
|
35 | 225 | && !isset($attributes['placeholder']) |
|
36 | ) { |
||
37 | 220 | $placeholder = $this->placeholder ?? $this->getInputData()->getPlaceholder(); |
|
38 | 220 | if ($placeholder !== null) { |
|
39 | 13 | $attributes['placeholder'] = $placeholder; |
|
40 | } |
||
46 |