| Conditions | 4 |
| Paths | 6 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 12 | public function getData() |
|
| 27 | { |
||
| 28 | 12 | if ($this->getTestMode()) { |
|
| 29 | 2 | $this->validate('testKey'); |
|
| 30 | } else { |
||
| 31 | 10 | $this->validate('signKey'); |
|
| 32 | } |
||
| 33 | |||
| 34 | 12 | $result = []; |
|
| 35 | 12 | $vars = array_merge($this->httpRequest->query->all(), $this->httpRequest->request->all()); |
|
| 36 | 12 | foreach ($vars as $key => $parameter) { |
|
| 37 | 12 | if (strpos($key, 'ik_') === 0) { |
|
| 38 | 12 | $result[$key] = $parameter; |
|
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | 12 | return $result; |
|
| 43 | } |
||
| 44 | |||
| 57 |