Skip to content

Commit 140ba0d

Browse files
committed
fixed code issues
1 parent 67817c7 commit 140ba0d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/TimberScanner.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class TimberScanner extends TwigScanner
2424
protected $functions = [
2525
'__' => 'text',
2626
'_e' => 'text',
27-
'_x' => 'text_context',
28-
'_ex' => 'text_context',
29-
'_n' => 'single_plural_number',
30-
'_nx' => 'single_plural_number_context',
31-
'_n_noop' => 'single_plural',
32-
'_nx_noop' => 'single_plural_context',
27+
'_x' => 'textContext',
28+
'_ex' => 'textContext',
29+
'_n' => 'singlePluralNumber',
30+
'_nx' => 'singlePluralNumberContext',
31+
'_n_noop' => 'singlePlural',
32+
'_nx_noop' => 'singlePluralContext',
3333
];
3434

3535
/**
@@ -56,7 +56,7 @@ protected function text(ParsedFunction $function): ?Translation
5656
);
5757
}
5858

59-
protected function text_context(ParsedFunction $function): ?Translation
59+
protected function textContext(ParsedFunction $function): ?Translation
6060
{
6161
list($original, $context, $domain) = array_pad($function->getArguments(), 3, null);
6262

@@ -66,7 +66,7 @@ protected function text_context(ParsedFunction $function): ?Translation
6666
);
6767
}
6868

69-
protected function single_plural_number(ParsedFunction $function): ?Translation
69+
protected function singlePluralNumber(ParsedFunction $function): ?Translation
7070
{
7171
list($original, $plural, $number, $domain) = array_pad($function->getArguments(), 4, null);
7272

@@ -76,7 +76,7 @@ protected function single_plural_number(ParsedFunction $function): ?Translation
7676
);
7777
}
7878

79-
protected function single_plural_number_context(ParsedFunction $function): ?Translation
79+
protected function singlePluralNumberContext(ParsedFunction $function): ?Translation
8080
{
8181
list($original, $plural, $number, $context, $domain) = array_pad($function->getArguments(), 5, null);
8282

@@ -86,7 +86,7 @@ protected function single_plural_number_context(ParsedFunction $function): ?Tran
8686
);
8787
}
8888

89-
protected function single_plural(ParsedFunction $function): ?Translation
89+
protected function singlePlural(ParsedFunction $function): ?Translation
9090
{
9191
list($original, $plural, $domain) = array_pad($function->getArguments(), 3, null);
9292

@@ -96,7 +96,7 @@ protected function single_plural(ParsedFunction $function): ?Translation
9696
);
9797
}
9898

99-
protected function single_plural_context(ParsedFunction $function): ?Translation
99+
protected function singlePluralContext(ParsedFunction $function): ?Translation
100100
{
101101
list($original, $plural, $context, $domain) = array_pad($function->getArguments(), 4, null);
102102

0 commit comments

Comments
 (0)