@@ -40,11 +40,13 @@ |
||
| 40 | 40 | * @return string |
| 41 | 41 | */ |
| 42 | 42 | public function translate($message, ...$parameters): string { |
| 43 | - if (empty($parameters)) |
|
| 44 | - return $this->translator->translate($message); |
|
| 43 | + if (empty($parameters)) { |
|
| 44 | + return $this->translator->translate($message); |
|
| 45 | + } |
|
| 45 | 46 | |
| 46 | - if (is_array($parameters[0])) |
|
| 47 | - return $this->translator->translate($message, ...$parameters[0]); |
|
| 47 | + if (is_array($parameters[0])) { |
|
| 48 | + return $this->translator->translate($message, ...$parameters[0]); |
|
| 49 | + } |
|
| 48 | 50 | |
| 49 | 51 | if (is_numeric($parameters[0])) { |
| 50 | 52 | $count = $parameters[0]; |