| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function getSpamCheckChallenge(int $eventUid): string |
||
| 26 | { |
||
| 27 | $hmac = GeneralUtility::hmac('event-' . $eventUid, 'sf_event_mgt'); |
||
| 28 | $chars = preg_replace('/[0-9]+/', '', $hmac); |
||
| 29 | |||
| 30 | return preg_replace_callback('/\w.?/', function ($m) { |
||
| 31 | return ucfirst($m[0]); |
||
| 32 | }, $chars); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |