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