mirror of
https://github.com/nextcloud/mail.git
synced 2026-01-13 20:23:59 +00:00
chore: fixup for lint
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
@ -118,10 +118,10 @@ final class Application extends App implements IBootstrap {
|
||||
return $favicon;
|
||||
});
|
||||
|
||||
$context->registerService(MbWrapper::class, function(ContainerInterface $c) {
|
||||
$context->registerService(MbWrapper::class, function (ContainerInterface $c) {
|
||||
return new MbWrapper();
|
||||
});
|
||||
$context->registerService(Converter::class, function(ContainerInterface $c) {
|
||||
$context->registerService(Converter::class, function (ContainerInterface $c) {
|
||||
return new Converter($c->get(MbWrapper::class));
|
||||
});
|
||||
|
||||
|
||||
@ -20,15 +20,15 @@ class Converter {
|
||||
* Prioritized charsets used for detection if header is missing/wrong.
|
||||
* This list can be expanded/tweaked based on userbase/email sources/field experience.
|
||||
*/
|
||||
private const DETECTION_CHARSETS = [
|
||||
'UTF-8',
|
||||
'WINDOWS-1252',
|
||||
'ISO-8859-1',
|
||||
'ISO-8859-15',
|
||||
'ISO-8859-2',
|
||||
// Add locale/userbase-specific encodings as needed.
|
||||
private const DETECTION_CHARSETS = [
|
||||
'UTF-8',
|
||||
'WINDOWS-1252',
|
||||
'ISO-8859-1',
|
||||
'ISO-8859-15',
|
||||
'ISO-8859-2',
|
||||
// Add locale/userbase-specific encodings as needed.
|
||||
// TODO: Make configurable and/or dynamically tailor based on user's locale/language to improve accuracy.
|
||||
];
|
||||
];
|
||||
|
||||
private MbWrapper $mbWrapper;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user