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