apply null coalescing operator

This commit is contained in:
El RIDO
2025-11-19 19:24:17 +01:00
parent c8643f187e
commit 69e5fc1b05
7 changed files with 19 additions and 40 deletions
+1 -6
View File
@@ -71,11 +71,6 @@ class ShlinkProxy extends AbstractProxy
*/
protected function _extractShortUrl(array $data): ?string
{
if (
array_key_exists('shortUrl', $data)
) {
return $data['shortUrl'];
}
return null;
return $data['shortUrl'] ?? null;
}
}