Skip to content

Add Checkbox::labelPlacement() #1651

Add Checkbox::labelPlacement()

Add Checkbox::labelPlacement() #1651

Triggered via pull request October 3, 2024 12:22
Status Failure
Total duration 2m 25s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

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();