From 913a4a5dc087b6fbf795cc56ab0d81dc85757623 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Oct 2022 22:44:54 +0200 Subject: [PATCH] Fixed code-standards complain by php-cs, thanks to @MrPetovan --- tests/src/Util/TemporalTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/src/Util/TemporalTest.php b/tests/src/Util/TemporalTest.php index a2f76114d3..cfe1af5e23 100644 --- a/tests/src/Util/TemporalTest.php +++ b/tests/src/Util/TemporalTest.php @@ -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')) -- 2.39.5