| @@ 253-259 (lines=7) @@ | ||
| 250 | * Validates the special character requirements. |
|
| 251 | * @return boolean |
|
| 252 | */ |
|
| 253 | private function validateSpecialCharacters() |
|
| 254 | { |
|
| 255 | if ($this->countOccurrences($this->specialCharacters, |
|
| 256 | $this->configuration->checkString()) >= $this->configuration->rules()->get(Plexity::RULE_SPECIAL)) { |
|
| 257 | return true; |
|
| 258 | } |
|
| 259 | return false; |
|
| 260 | } |
|
| 261 | ||
| 262 | /** |
|
| @@ 266-272 (lines=7) @@ | ||
| 263 | * Validates the numeric case requirements. |
|
| 264 | * @return boolean |
|
| 265 | */ |
|
| 266 | private function validateNumericCharacters() |
|
| 267 | { |
|
| 268 | if ($this->countOccurrences($this->numbers, |
|
| 269 | $this->configuration->checkString()) >= $this->configuration->rules()->get(Plexity::RULE_NUMERIC)) { |
|
| 270 | return true; |
|
| 271 | } |
|
| 272 | return false; |
|
| 273 | } |
|
| 274 | ||
| 275 | /** |
|