| @@ 40-47 (lines=8) @@ | ||
| 37 | $ref_ids = array(); |
|
| 38 | if ($node instanceof N\Expr\MethodCall) { |
|
| 39 | // The 'name' could also be a variable like in $this->$method(); |
|
| 40 | if (is_string($node->name)) { |
|
| 41 | $ref_ids[] = $insert->get_reference |
|
| 42 | ( Variable::METHOD_TYPE |
|
| 43 | , $node->name |
|
| 44 | , $location->file_path() |
|
| 45 | , $node->getAttribute("startLine") |
|
| 46 | ); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | elseif($node instanceof N\Expr\FuncCall) { |
|
| 50 | // Omit calls to closures, we would not be able to |
|
| @@ 39-46 (lines=8) @@ | ||
| 36 | $ref_id = null; |
|
| 37 | if ($node instanceof N\Expr\MethodCall) { |
|
| 38 | // The 'name' could also be a variable like in $this->$method(); |
|
| 39 | if (is_string($node->name)) { |
|
| 40 | $ref_id = $insert->get_reference |
|
| 41 | ( Variable::METHOD_TYPE |
|
| 42 | , $node->name |
|
| 43 | , $location->file_path() |
|
| 44 | , $node->getAttribute("startLine") |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | elseif($node instanceof N\Expr\FuncCall) { |
|
| 49 | // Omit calls to closures, we would not be able to |
|