Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
58 | 3 | protected function getFormFields() |
|
59 | { |
||
60 | 3 | preg_match_all("/type=\'hidden\' name=\'(.*?)\' value=\'(.*?)\'/", $this->data, $matches); |
|
61 | |||
62 | 3 | $fields = []; |
|
63 | |||
64 | 3 | foreach ($matches[0] as $i => $match) { |
|
65 | 3 | $fields[$matches[1][$i]] = $matches[2][$i]; |
|
66 | } |
||
67 | |||
68 | 3 | return $fields; |
|
69 | } |
||
70 | } |
||
71 |