protected function getPhpCodeFromJs($arguments)
{
if (preg_match('/^\\s*array\\s*\\([\\s\\S]*\\)\\s*$/i', $arguments[0])) {
return $arguments[0];
}
if ($this->jsPhpize === null) {
$this->jsPhpize = new JsPhpize();
}
return rtrim(trim(call_user_func(array($this->jsPhpize, 'compileCode'), $arguments[0], true)), ';');
}