| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function escape(array $data): array |
||
| 17 | { |
||
| 18 | $arrayDot = array_filter(array_dot($data)); |
||
| 19 | |||
| 20 | foreach ($arrayDot as $key => $value) { |
||
| 21 | if (is_string($value)) { |
||
| 22 | $arrayDot[$key] = e($value); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | foreach ($arrayDot as $key => $value) { |
||
| 27 | array_set($data, $key, $value); |
||
| 28 | } |
||
| 29 | |||
| 30 | return $data; |
||
| 31 | } |
||
| 32 | |||
| 46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.