MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / methodIn

Function methodIn

src/resolution/frameworks/laravel.ts:691–692  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

689 }
690 const rel = controller.replace(/\\/g, '/');
691 const methodIn = (filePath: string): string | null =>
692 context.getNodesInFile(filePath).find((n) => n.kind === 'method' && n.name === method)?.id ?? null;
693
694 const conventional = `app/Http/Controllers/${rel}.php`;
695 if (context.fileExists(conventional)) {

Callers 1

resolveControllerMethodFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected