@@ -122,16 +122,16 @@ discard block |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | - * {@inhereitdoc} |
|
| 126 | - */ |
|
| 125 | + * {@inhereitdoc} |
|
| 126 | + */ |
|
| 127 | 127 | public function __toString(): string |
| 128 | 128 | { |
| 129 | 129 | return $this->getLocale(); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | - * {@inhereitdoc} |
|
| 134 | - */ |
|
| 133 | + * {@inhereitdoc} |
|
| 134 | + */ |
|
| 135 | 135 | public function getEncoding(): string |
| 136 | 136 | { |
| 137 | 137 | return $this->encoding; |
@@ -178,8 +178,8 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * {@inhereitdoc} |
|
| 182 | - */ |
|
| 181 | + * {@inhereitdoc} |
|
| 182 | + */ |
|
| 183 | 183 | public function tr(string $message, $args = []): string |
| 184 | 184 | { |
| 185 | 185 | $translation = gettext($message); |
@@ -212,8 +212,8 @@ discard block |
||
| 212 | 212 | */ |
| 213 | 213 | public function tr(string $message, $args = []): string |
| 214 | 214 | { |
| 215 | - if (!empty($args) && !is_array($args)) { |
|
| 216 | - $args = array_slice(func_get_args(), 1); |
|
| 215 | + if (!empty($args) && !is_array($args)) { |
|
| 216 | + $args = array_slice(func_get_args(), 1); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | return $this->translator->tr($message, $args); |
@@ -234,8 +234,8 @@ discard block |
||
| 234 | 234 | int $count, |
| 235 | 235 | $args = [] |
| 236 | 236 | ): string { |
| 237 | - if (!empty($args) && !is_array($args)) { |
|
| 238 | - $args = array_slice(func_get_args(), 1); |
|
| 237 | + if (!empty($args) && !is_array($args)) { |
|
| 238 | + $args = array_slice(func_get_args(), 1); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | return $this->translator->trp( |