(filePath: string, content: string)
| 319 | }, |
| 320 | |
| 321 | extract(filePath: string, content: string): { nodes: Node[]; references: UnresolvedRef[] } { |
| 322 | const routes = ROUTES_FILE.test(filePath); |
| 323 | const baseUrl = routes ? null : controllerUrl(filePath); |
| 324 | if (!routes && baseUrl === null) return { nodes: [], references: [] }; |
| 325 | const safe = stripCommentsForRegex(content, 'php'); |
| 326 | return routes ? explicitRoutes(filePath, safe) : conventionRoutes(filePath, baseUrl!, safe); |
| 327 | }, |
| 328 | }; |
nothing calls this directly
no test coverage detected