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

Function phpWebRootSnapshot

src/resolution/php-web-root.ts:129–132  ·  view source on GitHub ↗
(configured: string | null, inferred: ReadonlyMap<string, string | null>)

Source from the content-addressed store, hash-verified

127 * holding such an include → its inferred root (null for none), as JSON.
128 */
129export function phpWebRootSnapshot(configured: string | null, inferred: ReadonlyMap<string, string | null>): string {
130 if (configured !== null) return CONFIGURED_WEB_ROOT;
131 return JSON.stringify(Object.fromEntries([...inferred].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))));
132}
133
134/**
135 * Whether the web roots moved for files a sync never touched, between two

Callers 3

getPhpWebRootSnapshotMethod · 0.90
snapFunction · 0.90

Calls

no outgoing calls

Tested by 1

snapFunction · 0.72