You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,7 +179,7 @@ public function formatFile(string $file, int $line, ?string $text = null): strin
179
179
}
180
180
181
181
if (false !== $link = $this->getFileLink($file, $line)) {
182
-
returnsprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', htmlspecialchars($link, \ENT_COMPAT | \ENT_SUBSTITUTE, $this->charset), $text);
182
+
return\sprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', htmlspecialchars($link, \ENT_COMPAT | \ENT_SUBSTITUTE, $this->charset), $text);
Copy file name to clipboardExpand all lines: Extension/TranslationExtension.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,10 @@ public function getTranslator(): TranslatorInterface
47
47
{
48
48
if (null === $this->translator) {
49
49
if (!interface_exists(TranslatorInterface::class)) {
50
-
thrownew \LogicException(sprintf('You cannot use the "%s" if the Translation Contracts are not available. Try running "composer require symfony/translation".', __CLASS__));
50
+
thrownew \LogicException(\sprintf('You cannot use the "%s" if the Translation Contracts are not available. Try running "composer require symfony/translation".', __CLASS__));
@@ -100,7 +100,7 @@ public function trans(string|\Stringable|TranslatableInterface|null $message, ar
100
100
{
101
101
if ($messageinstanceof TranslatableInterface) {
102
102
if ([] !== $arguments && !\is_string($arguments)) {
103
-
thrownew \TypeError(sprintf('Argument 2 passed to "%s()" must be a locale passed as a string when the message is a "%s", "%s" given.', __METHOD__, TranslatableInterface::class, get_debug_type($arguments)));
103
+
thrownew \TypeError(\sprintf('Argument 2 passed to "%s()" must be a locale passed as a string when the message is a "%s", "%s" given.', __METHOD__, TranslatableInterface::class, get_debug_type($arguments)));
104
104
}
105
105
106
106
if ($messageinstanceof TranslatableMessage && '' === $message->getMessage()) {
@@ -111,7 +111,7 @@ public function trans(string|\Stringable|TranslatableInterface|null $message, ar
111
111
}
112
112
113
113
if (!\is_array($arguments)) {
114
-
thrownew \TypeError(sprintf('Unless the message is a "%s", argument 2 passed to "%s()" must be an array of parameters, "%s" given.', TranslatableInterface::class, __METHOD__, get_debug_type($arguments)));
114
+
thrownew \TypeError(\sprintf('Unless the message is a "%s", argument 2 passed to "%s()" must be an array of parameters, "%s" given.', TranslatableInterface::class, __METHOD__, get_debug_type($arguments)));
115
115
}
116
116
117
117
if ('' === $message = (string) $message) {
@@ -128,7 +128,7 @@ public function trans(string|\Stringable|TranslatableInterface|null $message, ar
thrownew \LogicException(sprintf('You cannot use the "%s" as the Translation Component is not installed. Try running "composer require symfony/translation".', __CLASS__));
131
+
thrownew \LogicException(\sprintf('You cannot use the "%s" as the Translation Component is not installed. Try running "composer require symfony/translation".', __CLASS__));
0 commit comments