mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Improved tests to increase MSI to 69%
This commit is contained in:
@@ -58,7 +58,7 @@ class CreateShortUrlContentNegotiationMiddleware implements MiddlewareInterface
|
||||
return self::JSON;
|
||||
}
|
||||
|
||||
$format = strtolower((string) $query['format']);
|
||||
$format = strtolower($query['format']);
|
||||
return $format === 'txt' ? self::PLAIN_TEXT : self::JSON;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user