Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | public function addInput(string $key, $value = null): void |
||
57 | { |
||
58 | if (isset($this->testData[$key])) { |
||
59 | Assert::isArray($this->testData[$key]); |
||
60 | |||
61 | $arrayUtils = new Utils\Arrays(); |
||
62 | $this->testData[$key] = array_merge($this->testData[$key], $arrayUtils->arrayize($value)); |
||
63 | } else { |
||
64 | $this->testData[$key] = $value; |
||
65 | } |
||
88 |