Add Checkbox::labelPlacement()
#1651
Annotations
1 error and 2 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
|
mutation / PHP 8.3-ubuntu-latest:
src/Field/Checkbox.php#L257
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$label = $this->inputLabel ?? $this->label ?? $this->getInputData()->getLabel();
$checkbox = $checkbox->label($label, $this->inputLabelAttributes)->labelEncode($this->inputLabelEncode);
} elseif ($labelPlacement === CheckboxLabelPlacement::SIDE) {
- $label = $this->inputLabel ?? $this->label ?? $this->getInputData()->getLabel();
+ $label = $this->inputLabel ?? $this->getInputData()->getLabel() ?? $this->label;
$checkbox = $checkbox->sideLabel($label, $this->inputLabelAttributes)->labelEncode($this->inputLabelEncode);
}
$html = $checkbox->checked($inputValue === $value)->uncheckValue($this->uncheckValue)->render();
|
mutation / PHP 8.3-ubuntu-latest:
src/Field/Checkbox.php#L257
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$label = $this->inputLabel ?? $this->label ?? $this->getInputData()->getLabel();
$checkbox = $checkbox->label($label, $this->inputLabelAttributes)->labelEncode($this->inputLabelEncode);
} elseif ($labelPlacement === CheckboxLabelPlacement::SIDE) {
- $label = $this->inputLabel ?? $this->label ?? $this->getInputData()->getLabel();
+ $label = $this->label ?? $this->inputLabel ?? $this->getInputData()->getLabel();
$checkbox = $checkbox->sideLabel($label, $this->inputLabelAttributes)->labelEncode($this->inputLabelEncode);
}
$html = $checkbox->checked($inputValue === $value)->uncheckValue($this->uncheckValue)->render();
|