@@ -77,7 +77,7 @@ |
||
| 77 | 77 | public function translate(Translator $translator, $count = NULL, array $parameters = [], $domain = NULL, $locale = NULL) |
| 78 | 78 | { |
| 79 | 79 | if (!is_string($this->message)) { |
| 80 | - throw new InvalidStateException("Message is not a string, type " . gettype($this->message) . ' given.'); |
|
| 80 | + throw new InvalidStateException("Message is not a string, type ".gettype($this->message).' given.'); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $count = $count !== NULL ? $count : $this->count; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if ($token->name === '/_' || ($token->name === '_' && $token->closing === TRUE)) { |
| 71 | - $catalogue->set(($this->prefix ? $this->prefix . '.' : '') . $buffer, $buffer); |
|
| 71 | + $catalogue->set(($this->prefix ? $this->prefix.'.' : '').$buffer, $buffer); |
|
| 72 | 72 | $buffer = NULL; |
| 73 | 73 | |
| 74 | 74 | } elseif ($token->name === '_' && empty($token->value)) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $message = substr(trim($message), 1, -1); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - $catalogue->set(($this->prefix ? $this->prefix . '.' : '') . $message, $message); |
|
| 86 | + $catalogue->set(($this->prefix ? $this->prefix.'.' : '').$message, $message); |
|
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * {@inheritdoc} |
| 53 | + * @param string $format |
|
| 54 | + * @param string $resource |
|
| 55 | + * @param string $locale |
|
| 53 | 56 | */ |
| 54 | 57 | public function addResource($format, $resource, $locale, $domain = 'messages') |
| 55 | 58 | { |