mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
fixing some items
This commit is contained in:
@@ -76,14 +76,14 @@ Blockly.PHP['text_length'] = function(block) {
|
||||
// String length.
|
||||
var argument0 = Blockly.PHP.valueToCode(block, 'VALUE',
|
||||
Blockly.PHP.ORDER_FUNCTION_CALL) || '\'\'';
|
||||
return ['strlen(' + argument0 + ')', Blockly.PHP.ORDER_MEMBER];
|
||||
return ['strlen(' + argument0 + ')', Blockly.PHP.ORDER_FUNCTION_CALL];
|
||||
};
|
||||
|
||||
Blockly.PHP['text_isEmpty'] = function(block) {
|
||||
// Is the string null?
|
||||
var argument0 = Blockly.PHP.valueToCode(block, 'VALUE',
|
||||
Blockly.PHP.ORDER_MEMBER) || '\'\'';
|
||||
return ['empty(' + argument0 + ')', Blockly.PHP.ORDER_LOGICAL_NOT];
|
||||
return ['empty(' + argument0 + ')', Blockly.PHP.ORDER_FUNCTION_CALL];
|
||||
};
|
||||
|
||||
Blockly.PHP['text_indexOf'] = function(block) {
|
||||
|
||||
Reference in New Issue
Block a user