| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 28 | protected function correctValues(array $items): array |
|
| 24 | 28 | { |
|
| 25 | 28 | $this->log('Correcting array values...'); |
|
| 26 | |||
| 27 | $callback = static function ($value) { |
||
| 28 | 28 | return stripslashes($value); |
|
| 29 | }; |
||
| 30 | 28 | ||
| 31 | return Arrayable::of($items) |
||
| 32 | 28 | ->map($callback, true) |
|
| 33 | ->renameKeys($callback) |
||
| 34 | ->get(); |
||
| 35 | } |
||
| 44 |