Gettext_Translations::make_plural_form_function
Makes a function, which will return the right translation index, according to the plural forms header
Signature
public function make_plural_form_function(int
$nplurals,
string
$expression )
Parameters
$nplurals
—
int
$expression
—
string
Violations
Checkstyle
Line |
Column |
Severity |
Message |
203 |
1 |
error
|
Spaces must be used for alignment; tabs are not allowed |
203 |
5 |
error
|
Line indented incorrectly; expected 8 spaces, found 4 |
203 |
5 |
error
|
Method name "Gettext_Translations::make_plural_form_function" is not in camel caps format |
203 |
5 |
error
|
Visibility must be declared on method "make_plural_form_function" |
203 |
64 |
error
|
Opening brace should be on a new line |
204 |
1 |
error
|
Spaces must be used for alignment; tabs are not allowed |
204 |
9 |
error
|
Line indented incorrectly; expected at least 12 spaces, found 8 |
205 |
1 |
error
|
Spaces must be used for alignment; tabs are not allowed |
205 |
9 |
error
|
Line indented incorrectly; expected at least 12 spaces, found 8 |
208 |
1 |
error
|
Spaces must be used for alignment; tabs are not allowed |
208 |
9 |
error
|
Line indented incorrectly; expected at least 12 spaces, found 8 |
209 |
1 |
error
|
Spaces must be used for alignment; tabs are not allowed |
209 |
5 |
error
|
Line indented incorrectly; expected 8 spaces, found 4 |