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