diff --git a/src/lib/Translation/Extractor/JavaScriptFileVisitor.php b/src/lib/Translation/Extractor/JavaScriptFileVisitor.php index fbce933223..437f73107f 100644 --- a/src/lib/Translation/Extractor/JavaScriptFileVisitor.php +++ b/src/lib/Translation/Extractor/JavaScriptFileVisitor.php @@ -87,14 +87,19 @@ public function visitFile(SplFileInfo $file, MessageCatalogue $catalogue) } $ast->traverse(function ($node) use ($catalogue, $file) { - if ($this->isMethodCall($node, self::TRANSLATOR_OBJECT, self::TRANSLATOR_TRANS_METHOD) || $this->isMethodCall($node, self::TRANSLATOR_OBJECT, self::TRANSLATOR_TRANS_CHOICE_METHOD)) { + if ($this->isMethodCall($node, self::TRANSLATOR_OBJECT, self::TRANSLATOR_TRANS_METHOD) + || $this->isMethodCall($node, self::TRANSLATOR_OBJECT, self::TRANSLATOR_TRANS_CHOICE_METHOD) + ) { $arguments = $node->getArguments(); $id = $this->extractId($file, $arguments); if ($id !== null) { $callee = $node->getCallee(); $property = $callee->getProperty(); - $message = new Message($id, $this->extractDomain($file, $arguments, $property->getName()) ?? $this->defaultDomain); + $message = new Message( + $id, + $this->extractDomain($file, $arguments, $property->getName()) ?? $this->defaultDomain + ); $message->setDesc($this->extractDesc($arguments)); $message->addSource(new FileSource((string)$file));