| 5021 | } |
| 5022 | |
| 5023 | static bool php_vendor_service_edge(const cbm_gbuf_t *gb, const char *type, const char *name) { |
| 5024 | const cbm_gbuf_node_t *source = find_unique_callable_node_by_tail(gb, "Clients.run"); |
| 5025 | if (!source) |
| 5026 | return false; |
| 5027 | const cbm_gbuf_edge_t **edges = NULL; |
| 5028 | int count = 0; |
| 5029 | if (cbm_gbuf_find_edges_by_source_type(gb, source->id, type, &edges, &count) != 0 || count != 1) |
| 5030 | return false; |
| 5031 | const cbm_gbuf_node_t *target = cbm_gbuf_find_by_id(gb, edges[0]->target_id); |
| 5032 | return target && target->label && strcmp(target->label, "Route") == 0 && |
| 5033 | edges[0]->properties_json && strstr(edges[0]->properties_json, name); |
| 5034 | } |
| 5035 | |
| 5036 | static void php_vendor_edge_fp(const cbm_gbuf_edge_t *edge, void *ud) { |
| 5037 | if (strcmp(edge->type, "CALLS") == 0 || strcmp(edge->type, "USAGE") == 0 || |
no test coverage detected