original_string: public static function function_call_with_Y($function, array $extraarguments = null) {
          if ($extraarguments) {
              $extraarguments = array_map('json_encode', convert_to_array($extraarguments));
              $arguments = 'Y, ' . implode(', ', $extraarguments);
          } else {
              $arguments = 'Y';
          }
          return "$function($arguments);\n";
      }
code: public static function function_call_with_Y($function, array $extraarguments = null) {
          if ($extraarguments) {
              $extraarguments = array_map('json_encode', convert_to_array($extraarguments));
              $arguments = 'Y, ' . implode(', ', $extraarguments);
          } else {
              $arguments = 'Y';
          }
          return "$function($arguments);\n";
      }
code_tokens: public static function function_call_with_Y ( $ function , array $ extraarguments = null ) { if ( $ extraarguments ) { $ extraarguments = array_map ( 'json_encode' , convert_to_array ( $ extraarguments ) ) ; $ arguments = 'Y, ' . implode ( ', ' , $ extraarguments ) ; } else { $ arguments = 'Y' ; } return "$function($arguments);\n" ; }
docstring: Special function which adds Y as first argument of function call.
  
  @param string $function The function to call
  @param array $extraarguments Any arguments to pass to it
  @return string Some JS code
docstring_tokens: Special function which adds Y as first argument of function call .