@@ -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( |