Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | protected function setStyles() |
||
42 | { |
||
43 | $this->class[] = config('blade-form-components.themes.'.$this->getTheme().'.fields.checkbox') ?? config('blade-form-components.themes.'.$this->getTheme().'.fields.default'); |
||
44 | $this->labelClass[] = config('blade-form-components.themes.'.$this->getTheme().'.labels.checkbox'); |
||
45 | |||
46 | // Attach the error class if an error is displayed against this field |
||
47 | if ($this->form->errors->has($this->name)) { |
||
48 | $this->labelClass[] = config('blade-form-components.themes.'.$this->getTheme().'.fields.is-error'); |
||
49 | } |
||
52 |