Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
48 | protected function getInput(HTMLNode $previous): ?HTMLNode |
||
49 | { |
||
50 | /** |
||
51 | * @var HTMLNode $element |
||
52 | */ |
||
53 | $element = null; |
||
54 | $input = $previous->get('input'); |
||
55 | if (count($input)) { |
||
56 | return $input[0]; |
||
57 | } |
||
58 | $input = $previous->get('textarea'); |
||
59 | if (count($input)) { |
||
60 | $element = $input[0]; |
||
61 | } |
||
62 | return $element; |
||
63 | } |
||
65 |