Skip to content
Snippets Groups Projects
Commit b329c4b1 authored by Demian Katz's avatar Demian Katz
Browse files

php-cs-fixer

parent d38204a3
No related merge requests found
...@@ -96,10 +96,10 @@ class JsTranslations extends AbstractHelper ...@@ -96,10 +96,10 @@ class JsTranslations extends AbstractHelper
$parts = []; $parts = [];
foreach ($this->strings as $k => $v) { foreach ($this->strings as $k => $v) {
$translation = is_array($v) $translation = is_array($v)
? call_user_func_array(array($this->transEsc, '__invoke'), $v) ? call_user_func_array([$this->transEsc, '__invoke'], $v)
: $this->transEsc->__invoke($v); : $this->transEsc->__invoke($v);
$parts[] = $k . ': "' . addslashes($translation) . '"'; $parts[] = $k . ': "' . addslashes($translation) . '"';
} }
return $this->varName . ' = {' . implode(',', $parts) . '};'; return $this->varName . ' = {' . implode(',', $parts) . '};';
} }
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment