| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | 62 | protected function correct(array $items): array |
|
| 39 | { |
||
| 40 | 62 | $callback = static function ($value) { |
|
| 41 | 62 | return is_string($value) ? stripslashes($value) : $value; |
|
| 42 | 62 | }; |
|
| 43 | |||
| 44 | 62 | return Arrayable::of($items) |
|
| 45 | 62 | ->map($callback, true) |
|
| 46 | 62 | ->renameKeys($callback) |
|
| 47 | 62 | ->get(); |
|
| 48 | } |
||
| 50 |