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