| Total Complexity | 5 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 10 | class CleanupUuidOrName | ||
| 11 | { | ||
| 12 | public function handle(Request $request, Closure $next) | ||
| 29 | } | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param string $uuid | ||
| 33 | * | ||
| 34 | * @return string|string[] | ||
| 35 | */ | ||
| 36 | private function cleanUuid(string $uuid) | ||
| 37 |     { | ||
| 38 |         $uuid = \preg_replace("#\.png.*#", '', $uuid); | ||
| 39 | |||
| 40 |         return \str_replace('-', '', $uuid); | ||
| 41 | } | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @param string $username | ||
| 45 | * | ||
| 46 | * @return string|string[]|null | ||
| 47 | */ | ||
| 48 | private function cleanUsername(string $username) | ||
| 51 | } | ||
| 52 | } | ||
| 53 |