| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 14 | public function passes($password) |
|
| 58 | { |
||
| 59 | 14 | $dictionary = $this->dictionary->handle(); |
|
| 60 | |||
| 61 | 14 | $regex = preg_quote(implode($dictionary), '#'); |
|
| 62 | |||
| 63 | 14 | $result = preg_match_all("#[" . $regex . "]#u", $password, $matches); |
|
| 64 | |||
| 65 | 14 | return $this->occurrence->validate($result); |
|
| 66 | } |
||
| 67 | } |
||
| 68 |