Lint corrections.

This commit is contained in:
Neil Fraser
2015-06-17 13:05:24 -07:00
parent b37fb2bf8c
commit edd3e3bf33
24 changed files with 190 additions and 176 deletions

View File

@@ -40,7 +40,8 @@ Blockly.PHP['colour_random'] = function(block) {
var functionName = Blockly.PHP.provideFunction_(
'colour_random',
[ 'function ' + Blockly.PHP.FUNCTION_NAME_PLACEHOLDER_ + '() {',
' return \'#\' . str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, \'0\', STR_PAD_LEFT);',
' return \'#\' . str_pad(dechex(mt_rand(0, 0xFFFFFF)), ' +
'6, \'0\', STR_PAD_LEFT);',
'}']);
var code = functionName + '()';
return [code, Blockly.PHP.ORDER_FUNCTION_CALL];