Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5f06ad1

Browse files
CS fixes
1 parent 6e864bb commit 5f06ad1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎Test/TranslatorTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function tearDown(): void
4545

4646
public function getTranslator(): TranslatorInterface
4747
{
48-
return new class() implements TranslatorInterface {
48+
return new class implements TranslatorInterface {
4949
use TranslatorTrait;
5050
};
5151
}
@@ -365,7 +365,7 @@ protected function validateMatrix(string $nplural, array $matrix, bool $expectSu
365365

366366
protected function generateTestData($langCodes)
367367
{
368-
$translator = new class() {
368+
$translator = new class {
369369
use TranslatorTrait {
370370
getPluralizationRule as public;
371371
}

‎TranslatorTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function trans(?string $id, array $parameters = [], ?string $domain = nul
111111
return strtr($standardRules[0], $parameters);
112112
}
113113

114-
$message = sprintf('Unable to choose a translation for "%s" with locale "%s" for value "%d". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %%count%% apples").', $id, $locale, $number);
114+
$message = \sprintf('Unable to choose a translation for "%s" with locale "%s" for value "%d". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %%count%% apples").', $id, $locale, $number);
115115

116116
if (class_exists(InvalidArgumentException::class)) {
117117
throw new InvalidArgumentException($message);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /