Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 3 | public function loadEntries(string $inputType): void |
|
15 | { |
||
16 | 3 | if (IEntry::SOURCE_POST == $inputType) { |
|
17 | 1 | $this->vars = $this->loadVars($_POST); |
|
18 | 2 | } elseif (IEntry::SOURCE_GET == $inputType) { |
|
19 | 1 | $this->vars = $this->loadVars($_GET); |
|
20 | } else { |
||
21 | 1 | throw new FormsException(sprintf('Unknown input type - %s', $inputType)); |
|
22 | } |
||
23 | 2 | $this->inputType = $inputType; |
|
24 | 2 | } |
|
46 |