@@ -83,7 +83,7 @@ |
||
| 83 | 83 | public function translate(Translator $translator, $count = NULL, array $parameters = [], $domain = NULL, $locale = NULL): string |
| 84 | 84 | { |
| 85 | 85 | if (!is_string($this->message)) { |
| 86 | - throw new \Kdyby\Translation\InvalidStateException('Message is not a string, type ' . gettype($this->message) . ' given.'); |
|
| 86 | + throw new \Kdyby\Translation\InvalidStateException('Message is not a string, type '.gettype($this->message).' given.'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | $count = ($count !== NULL) ? (int) $count : $this->count; |
@@ -45,11 +45,11 @@ discard block |
||
| 45 | 45 | $value = var_export($node->content, TRUE); |
| 46 | 46 | $node->content = ''; |
| 47 | 47 | } else { |
| 48 | - $node->openingCode = '<?php ob_start(function () {}) ?>' . $node->openingCode; |
|
| 48 | + $node->openingCode = '<?php ob_start(function () {}) ?>'.$node->openingCode; |
|
| 49 | 49 | $value = 'ob_get_clean()'; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - if (!defined(Engine::class . '::VERSION_ID') || Engine::VERSION_ID < 20804) { |
|
| 52 | + if (!defined(Engine::class.'::VERSION_ID') || Engine::VERSION_ID < 20804) { |
|
| 53 | 53 | return $writer->write('$_fi = new LR\FilterInfo(%var); echo %modifyContent($this->filters->filterContent("translate", $_fi, %raw))', $node->context[0], $value); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | throw new \Latte\CompileException('Expected message prefix, none given'); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - return $writer->write('$_translator = ' . PrefixedTranslator::class . '::register($this, %node.word);'); |
|
| 91 | + return $writer->write('$_translator = '.PrefixedTranslator::class.'::register($this, %node.word);'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | |