Fixed code-standards complain by php-cs, thanks to @MrPetovan

This commit is contained in:
Roland Häder 2022-10-25 22:44:54 +02:00
parent b1cf4cbbd5
commit 913a4a5dc0
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77

View file

@ -50,7 +50,9 @@ class TemporalTest extends TestCase
// Format current date/time - 1 minute into "MySQL" format
$minuteAgo = date('Y-m-d H:i:s', time() - 60);
$format = DI::l10n()->t('%1$d %2$s ago');
$format = DI::l10n()->t('%1$d %2$s ago');
// Should be both equal
self::assertEquals(
Temporal::getRelativeDate($minuteAgo),
sprintf($format, 1, DI::l10n()->t('minute'))