| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 1 | public function __construct( |
|
| 24 | $name, $label = null, $size = null, $labelClass = null, |
||
| 25 | $topClass = null, $disableFeedback = null, $config = [] |
||
| 26 | ) { |
||
| 27 | 1 | parent::__construct( |
|
| 28 | 1 | $name, $label, $size, $labelClass, $topClass, $disableFeedback |
|
| 29 | ); |
||
| 30 | |||
| 31 | 1 | $this->config = is_array($config) ? $config : []; |
|
| 32 | |||
| 33 | // Setup the default plugin width option. |
||
| 34 | |||
| 35 | 1 | $this->config['width'] = $this->config['width'] ?? 'inherit'; |
|
| 36 | 1 | } |
|
| 48 |