From: Roland Häder Date: Tue, 25 Oct 2022 20:44:54 +0000 (+0200) Subject: Fixed code-standards complain by php-cs, thanks to @MrPetovan X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=913a4a5dc087b6fbf795cc56ab0d81dc85757623;p=friendica.git Fixed code-standards complain by php-cs, thanks to @MrPetovan --- 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'))