| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public static function getSpamCheckChallenge(int $eventUid): string |
||
| 46 | { |
||
| 47 | $hmac = GeneralUtility::hmac('event-' . $eventUid, 'sf_event_mgt'); |
||
| 48 | $chars = preg_replace('/[0-9]+/', '', $hmac); |
||
| 49 | |||
| 50 | return preg_replace_callback('/\w.?/', function ($m) { |
||
| 51 | return ucfirst($m[0]); |
||
| 52 | }, $chars); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |