Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
{
"php/assertions.php": {
"file_info": {
"path": "lang_samples/php/assertions.php",
"language": "php",
"size_bytes": 555,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/php/assertions.php::AssertionsTest",
"name": "AssertionsTest",
"qualified_name": "lang_samples.php.assertions.AssertionsTest",
"kind": "class",
"signature": "class AssertionsTest",
"start_line": 4,
"end_line": 20,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
"name": "testManyAsserts",
"qualified_name": "lang_samples.php.assertions.AssertionsTest.testManyAsserts",
"kind": "method",
"signature": "func testManyAsserts()",
"start_line": 5,
"end_line": 12,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "AssertionsTest",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",
"name": "testFewAsserts",
"qualified_name": "lang_samples.php.assertions.AssertionsTest.testFewAsserts",
"kind": "method",
"signature": "func testFewAsserts()",
"start_line": 14,
"end_line": 19,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "AssertionsTest",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [
{
"raw_statement": "use PHPUnit\\Framework\\TestCase;",
"module_path": "PHPUnit\\Framework\\TestCase",
"imported_names": [
"TestCase"
],
"is_relative": false,
"resolved_file": null,
"bindings": [
{
"local_name": "TestCase",
"exported_name": "PHPUnit\\Framework\\TestCase",
"source_file": null,
"is_module_alias": false,
"is_global": false,
"is_static_import": false,
"line": null,
"column": null
}
],
"is_reexport": false,
"is_module_declaration": false,
"type_only": false,
"deferred": false
}
],
"exports": [
"AssertionsTest"
],
"export_aliases": {},
"calls": [
{
"target_name": "assertEquals",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
"line": 7,
"argument_count": 2,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "assertTrue",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
"line": 8,
"argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "assertFalse",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
"line": 9,
"argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "assertNotNull",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
"line": 10,
"argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "assertGreaterThan",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
"line": 11,
"argument_count": 2,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "assertEquals",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",
"line": 16,
"argument_count": 2,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "assertNotNull",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",
"line": 18,
"argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [
{
"child_name": "AssertionsTest",
"parent_name": "TestCase",
"kind": "extends",
"line": 4
}
],
"docstring": null,
"parse_errors": [],
"content_hash": "73822ad29cad25e5d798439b08bf95434bfe1f462ee07dd6223d5e438fdb0a84",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"php/classes.php": {
"file_info": {
"path": "lang_samples/php/classes.php",
"language": "php",
"size_bytes": 1172,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/php/classes.php::CohesiveClass",
"name": "CohesiveClass",
"qualified_name": "lang_samples.php.classes.CohesiveClass",
"kind": "class",
"signature": "class CohesiveClass",
"start_line": 4,
"end_line": 23,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::total",
"name": "total",
"qualified_name": "lang_samples.php.classes.CohesiveClass.total",
"kind": "variable",
"signature": "total",
"start_line": 5,
"end_line": 5,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "CohesiveClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::add",
"name": "add",
"qualified_name": "lang_samples.php.classes.CohesiveClass.add",
"kind": "method",
"signature": "func add(int $x)",
"start_line": 7,
"end_line": 9,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "CohesiveClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::getTotal",
"name": "getTotal",
"qualified_name": "lang_samples.php.classes.CohesiveClass.getTotal",
"kind": "method",
"signature": "func getTotal()",
"start_line": 11,
"end_line": 13,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "CohesiveClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::reset",
"name": "reset",
"qualified_name": "lang_samples.php.classes.CohesiveClass.reset",
"kind": "method",
"signature": "func reset()",
"start_line": 15,
"end_line": 18,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "CohesiveClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::helper",
"name": "helper",
"qualified_name": "lang_samples.php.classes.CohesiveClass.helper",
"kind": "method",
"signature": "func helper()",
"start_line": 20,
"end_line": 22,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "CohesiveClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass",
"name": "SplitClass",
"qualified_name": "lang_samples.php.classes.SplitClass",
"kind": "class",
"signature": "class SplitClass",
"start_line": 25,
"end_line": 44,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::alpha",
"name": "alpha",
"qualified_name": "lang_samples.php.classes.SplitClass.alpha",
"kind": "variable",
"signature": "alpha",
"start_line": 26,
"end_line": 26,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "SplitClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::beta",
"name": "beta",
"qualified_name": "lang_samples.php.classes.SplitClass.beta",
"kind": "variable",
"signature": "beta",
"start_line": 27,
"end_line": 27,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "SplitClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::stepAlpha",
"name": "stepAlpha",
"qualified_name": "lang_samples.php.classes.SplitClass.stepAlpha",
"kind": "method",
"signature": "func stepAlpha()",
"start_line": 29,
"end_line": 31,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "SplitClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::getAlpha",
"name": "getAlpha",
"qualified_name": "lang_samples.php.classes.SplitClass.getAlpha",
"kind": "method",
"signature": "func getAlpha()",
"start_line": 33,
"end_line": 35,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "SplitClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::stepBeta",
"name": "stepBeta",
"qualified_name": "lang_samples.php.classes.SplitClass.stepBeta",
"kind": "method",
"signature": "func stepBeta()",
"start_line": 37,
"end_line": 39,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "SplitClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::getBeta",
"name": "getBeta",
"qualified_name": "lang_samples.php.classes.SplitClass.getBeta",
"kind": "method",
"signature": "func getBeta()",
"start_line": 41,
"end_line": 43,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "SplitClass",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait",
"name": "LoggableTrait",
"qualified_name": "lang_samples.php.classes.LoggableTrait",
"kind": "trait",
"signature": "LoggableTrait",
"start_line": 46,
"end_line": 56,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait::prefix",
"name": "prefix",
"qualified_name": "lang_samples.php.classes.LoggableTrait.prefix",
"kind": "variable",
"signature": "prefix",
"start_line": 47,
"end_line": 47,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "LoggableTrait",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait::log",
"name": "log",
"qualified_name": "lang_samples.php.classes.LoggableTrait.log",
"kind": "method",
"signature": "func log(string $msg)",
"start_line": 49,
"end_line": 51,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "LoggableTrait",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait::setPrefix",
"name": "setPrefix",
"qualified_name": "lang_samples.php.classes.LoggableTrait.setPrefix",
"kind": "method",
"signature": "func setPrefix(string $p)",
"start_line": 53,
"end_line": 55,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "LoggableTrait",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::WorkerInterface",
"name": "WorkerInterface",
"qualified_name": "lang_samples.php.classes.WorkerInterface",
"kind": "interface",
"signature": "interface WorkerInterface",
"start_line": 58,
"end_line": 60,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::WorkerInterface::performWork",
"name": "performWork",
"qualified_name": "lang_samples.php.classes.WorkerInterface.performWork",
"kind": "method",
"signature": "func performWork()",
"start_line": 59,
"end_line": 59,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": "WorkerInterface",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/classes.php::Priority",
"name": "Priority",
"qualified_name": "lang_samples.php.classes.Priority",
"kind": "enum",
"signature": "enum Priority",
"start_line": 62,
"end_line": 65,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"CohesiveClass",
"SplitClass",
"LoggableTrait",
"WorkerInterface",
"Priority"
],
"export_aliases": {},
"calls": [
{
"target_name": "helper",
"receiver_name": "this",
"caller_symbol_id": "lang_samples/php/classes.php::CohesiveClass::reset",
"line": 17,
"argument_count": 0,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "9f4f58ffa114036136ece41c380150d09ee48bd0288e2b27b580056bda9702f9",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"php/clean.php": {
"file_info": {
"path": "lang_samples/php/clean.php",
"language": "php",
"size_bytes": 137,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/php/clean.php::greet",
"name": "greet",
"qualified_name": "lang_samples.php.clean.greet",
"kind": "function",
"signature": "def greet(string $name) -> string",
"start_line": 3,
"end_line": 5,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/clean.php::sum",
"name": "sum",
"qualified_name": "lang_samples.php.clean.sum",
"kind": "function",
"signature": "def sum(int $a, int $b) -> int",
"start_line": 7,
"end_line": 9,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"greet",
"sum"
],
"export_aliases": {},
"calls": [],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "e3031a16d3389e2e47bd9884b7eea663339a22598be91c01b75d35eb811cde39",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"php/nested.php": {
"file_info": {
"path": "lang_samples/php/nested.php",
"language": "php",
"size_bytes": 1945,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/php/nested.php::deeply_nested",
"name": "deeply_nested",
"qualified_name": "lang_samples.php.nested.deeply_nested",
"kind": "function",
"signature": "def deeply_nested($x)",
"start_line": 4,
"end_line": 15,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::many_branches",
"name": "many_branches",
"qualified_name": "lang_samples.php.nested.many_branches",
"kind": "function",
"signature": "def many_branches($a, $b)",
"start_line": 17,
"end_line": 30,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::wordy",
"name": "wordy",
"qualified_name": "lang_samples.php.nested.wordy",
"kind": "function",
"signature": "def wordy($a, $b)",
"start_line": 32,
"end_line": 34,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::shallow",
"name": "shallow",
"qualified_name": "lang_samples.php.nested.shallow",
"kind": "function",
"signature": "def shallow($x)",
"start_line": 36,
"end_line": 38,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::lambda_and_arrow",
"name": "lambda_and_arrow",
"qualified_name": "lang_samples.php.nested.lambda_and_arrow",
"kind": "function",
"signature": "def lambda_and_arrow($items)",
"start_line": 40,
"end_line": 49,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::match_and_switch",
"name": "match_and_switch",
"qualified_name": "lang_samples.php.nested.match_and_switch",
"kind": "function",
"signature": "def match_and_switch($x)",
"start_line": 51,
"end_line": 71,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::try_catch_finally",
"name": "try_catch_finally",
"qualified_name": "lang_samples.php.nested.try_catch_finally",
"kind": "function",
"signature": "def try_catch_finally($path)",
"start_line": 73,
"end_line": 86,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/php/nested.php::loops_galore",
"name": "loops_galore",
"qualified_name": "lang_samples.php.nested.loops_galore",
"kind": "function",
"signature": "def loops_galore($items)",
"start_line": 88,
"end_line": 100,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "php",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"deeply_nested",
"many_branches",
"wordy",
"shallow",
"lambda_and_arrow",
"match_and_switch",
"try_catch_finally",
"loops_galore"
],
"export_aliases": {},
"calls": [
{
"target_name": "array_map",
"receiver_name": null,
"caller_symbol_id": "lang_samples/php/nested.php::lambda_and_arrow",
"line": 48,
"argument_count": 2,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "array_map",
"receiver_name": null,
"caller_symbol_id": "lang_samples/php/nested.php::lambda_and_arrow",
"line": 48,
"argument_count": 2,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "file_get_contents",
"receiver_name": null,
"caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",
"line": 75,
"argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "Exception",
"receiver_name": null,
"caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",
"line": 77,
"argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "getMessage",
"receiver_name": "e",
"caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",
"line": 80,
"argument_count": 0,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "getMessage",
"receiver_name": "e",
"caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",
"line": 82,
"argument_count": 0,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "6c1d5c730ed848fd74c74932108d20603c404150bb4a93aa0760a4025649c68a",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
}
}