diff --git a/core/generator.js b/core/generator.js index bc2bf8e60..d07333722 100644 --- a/core/generator.js +++ b/core/generator.js @@ -427,8 +427,8 @@ Blockly.Generator.prototype.init = function(_workspace) { * the block, or to handle comments for the specified block and any connected * value blocks. * @param {!Blockly.Block} _block The current block. - * @param {string} code The JavaScript code created for this block. - * @return {string} JavaScript code with comments and subsequent blocks added. + * @param {string} code The code created for this block. + * @return {string} Code with comments and subsequent blocks added. * @private */ Blockly.Generator.prototype.scrub_ = function(_block, code) { diff --git a/generators/php/math.js b/generators/php/math.js index cef909281..478faa8c6 100644 --- a/generators/php/math.js +++ b/generators/php/math.js @@ -188,7 +188,7 @@ Blockly.PHP['math_number_property'] = function(block) { ' return true;', '}']); code = functionName + '(' + number_to_check + ')'; - return [code, Blockly.JavaScript.ORDER_FUNCTION_CALL]; + return [code, Blockly.PHP.ORDER_FUNCTION_CALL]; } switch (dropdown_property) { case 'EVEN': @@ -381,4 +381,4 @@ Blockly.PHP['math_atan2'] = function(block) { Blockly.PHP.ORDER_COMMA) || '0'; return ['atan2(' + argument1 + ', ' + argument0 + ') / pi() * 180', Blockly.PHP.ORDER_DIVISION]; -}; \ No newline at end of file +};