@@ -360,16 +360,16 @@ private function validateFunctionNames(PHPParser_Node $node)
360
360
// If function name is a variable.
361
361
$ name = (string )$ node ->name ->name ;
362
362
}
363
- else if ($ node ->name instanceof PHPParser_Node_Expr_Concat)
364
- {
365
- // Only test if both are a string
366
- // This mean that if a user works around this test he can do so, but otherwise we will
367
- // need to parse variables and stuff.
368
- if ($ node ->left instanceof PHPParser_Node_Scalar_String && $ node ->right instanceof PHPParser_Node_Scalar_String)
369
- {
370
- $ name = $ node ->left ->value . $ node ->right ->value ;
371
- }
372
- }
363
+ else if ($ node ->name instanceof PHPParser_Node_Expr_Concat)
364
+ {
365
+ // Only test if both are a string
366
+ // This mean that if a user works around this test he can do so, but otherwise we will
367
+ // need to parse variables and stuff.
368
+ if ($ node ->left instanceof PHPParser_Node_Scalar_String && $ node ->right instanceof PHPParser_Node_Scalar_String)
369
+ {
370
+ $ name = $ node ->left ->value . $ node ->right ->value ;
371
+ }
372
+ }
373
373
else
374
374
{
375
375
$ name = (string )$ node ->name ;
@@ -402,18 +402,18 @@ private function validateMethodCalls(PHPParser_Node $node) {
402
402
$ name = (string )$ node ->name ->name ;
403
403
}
404
404
else if ($ node ->name instanceof PHPParser_Node_Expr_Concat)
405
- {
406
- // Only test if both are a string
407
- // This mean that if a user works around this test he can do so, but otherwise we will
408
- // need to parse variables and stuff.
409
- if ($ node ->left instanceof PHPParser_Node_Scalar_String && $ node ->right instanceof PHPParser_Node_Scalar_String)
410
- {
411
- $ name = $ node ->left ->value . $ node ->right ->value ;
412
- }
413
- }
405
+ {
406
+ // Only test if both are a string
407
+ // This mean that if a user works around this test he can do so, but otherwise we will
408
+ // need to parse variables and stuff.
409
+ if ($ node ->left instanceof PHPParser_Node_Scalar_String && $ node ->right instanceof PHPParser_Node_Scalar_String)
410
+ {
411
+ $ name = $ node ->left ->value . $ node ->right ->value ;
412
+ }
413
+ }
414
414
else
415
415
{
416
- $ name = (string )$ node ->name ;
416
+ $ name = (string )$ node ->name ;
417
417
}
418
418
}
419
419
else if (isset ($ node ->expr ) && $ node ->expr instanceof PHPParser_Node_Expr_MethodCall)
0 commit comments