| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function buildField(): string |
||
| 15 | { |
||
| 16 | if ($this->is_raw) { // only build the field element |
||
| 17 | return $this->builder()->build($this->tag(), $this->toArray()); |
||
| 18 | } |
||
| 19 | if ('number' === $this->original_type) { |
||
| 20 | return $this->builder()->p([ |
||
|
1 ignored issue
–
show
|
|||
| 21 | 'style' => 'display:flex;align-items:baseline;gap:5px;', |
||
| 22 | 'text' => $this->buildFieldElement().$this->buildFieldLabel(), |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | return $this->builder()->p([ |
||
| 26 | 'text' => $this->buildFieldLabel().$this->buildFieldElement(), |
||
| 27 | ]); |
||
| 40 |