| 1 | <?php |
||
| 15 | class LinkSpamCheck extends AbstractSpamCheck |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Counts the amount of links in all fields/registration fields and evaluates, if the found amount |
||
| 19 | * of links is greater than the configured max. amount of links |
||
| 20 | * |
||
| 21 | * @return bool |
||
| 22 | */ |
||
| 23 | public function isFailed(): bool |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Returns the amount of links |
||
| 50 | * |
||
| 51 | * @param string $value |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | private function getAmountOfLinks(string $value): int |
||
| 64 | } |
||
| 65 |