| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | private function removeUnwantedParams(array &$params = []) |
||
| 10 | { |
||
| 11 | foreach ($params as $key => &$value) { |
||
| 12 | if (in_array($key, $this->unwantedKeys, true)) { |
||
| 13 | unset($params[$key]); |
||
| 14 | } elseif (is_array($value)) { |
||
| 15 | $this->removeUnwantedParams($value); |
||
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 19 | return $params; |
||
| 20 | } |
||
| 22 |