chore: fixup for lint

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
Josh Richards
2026-01-09 01:41:31 -05:00
parent a280d584b5
commit 2cfeb6e7e2
2 changed files with 10 additions and 10 deletions

View File

@ -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));
});

View File

@ -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;