| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 1 | private function translatePasswordStrengthResults(array $passwordStrength): array |
|
| 31 | { |
||
| 32 | 1 | $passwordStrength['feedback']['warning'] = $this->translate($passwordStrength['feedback']['warning']); |
|
| 33 | |||
| 34 | 1 | foreach ($passwordStrength['feedback']['suggestions'] as $index => $suggestion) { |
|
| 35 | 1 | $passwordStrength['feedback']['suggestions'][$index] = $this->translate($suggestion); |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | return $passwordStrength; |
|
| 39 | } |
||
| 48 |