Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
40 | public function execute(array $configuration, array $entry) |
||
41 | { |
||
42 | if (isset($configuration['filter']['password']) && \in_array($configuration['filter']['password'], $configuration['mapping'])) { |
||
43 | $field = \array_search($configuration['filter']['password'], $configuration['mapping']); |
||
44 | $entry[$field] = $this->hashService->hash($entry[$field]); |
||
45 | } |
||
46 | |||
47 | return [$configuration, $entry]; |
||
48 | } |
||
49 | } |
||
50 |