Refactor code structure for improved readability and maintainability

This commit is contained in:
hamed
2026-07-11 13:26:22 +03:30
parent 958105694a
commit 0b49b03a1e
33 changed files with 6439 additions and 1476 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_service_doctorimportresult_php", "label": "DoctorImportResult.php", "file_type": "code", "source_file": "src/Doctor/Service/DoctorImportResult.php", "source_location": "L1"}, {"id": "service_doctorimportresult_doctorimportresult", "label": "DoctorImportResult", "file_type": "code", "source_file": "src/Doctor/Service/DoctorImportResult.php", "source_location": "L7"}, {"id": "service_doctorimportresult_doctorimportresult_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Doctor/Service/DoctorImportResult.php", "source_location": "L9"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_service_doctorimportresult_php", "target": "doctor", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Doctor/Service/DoctorImportResult.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_service_doctorimportresult_php", "target": "service_doctorimportresult_doctorimportresult", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Doctor/Service/DoctorImportResult.php", "source_location": "L7", "weight": 1.0}, {"source": "service_doctorimportresult_doctorimportresult", "target": "service_doctorimportresult_doctorimportresult_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Doctor/Service/DoctorImportResult.php", "source_location": "L9", "weight": 1.0}], "raw_calls": []}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_shared_util_persiantext_php", "label": "PersianText.php", "file_type": "code", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L1"}, {"id": "util_persiantext_persiantext", "label": "PersianText", "file_type": "code", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L12"}, {"id": "util_persiantext_persiantext_normalize", "label": ".normalize()", "file_type": "code", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L14"}, {"id": "util_persiantext_persiantext_samename", "label": ".sameName()", "file_type": "code", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L40"}, {"id": "util_persiantext_persiantext_stripdoctortitle", "label": ".stripDoctorTitle()", "file_type": "code", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L46"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_shared_util_persiantext_php", "target": "util_persiantext_persiantext", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L12", "weight": 1.0}, {"source": "util_persiantext_persiantext", "target": "util_persiantext_persiantext_normalize", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L14", "weight": 1.0}, {"source": "util_persiantext_persiantext", "target": "util_persiantext_persiantext_samename", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L40", "weight": 1.0}, {"source": "util_persiantext_persiantext", "target": "util_persiantext_persiantext_stripdoctortitle", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Shared/Util/PersianText.php", "source_location": "L46", "weight": 1.0}], "raw_calls": [{"caller_nid": "util_persiantext_persiantext_normalize", "callee": "class_exists", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L16", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_normalize", "callee": "\\Normalizer", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L17", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_normalize", "callee": "strtr", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L20", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_normalize", "callee": "strtr", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L31", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_normalize", "callee": "array_combine", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L31", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_normalize", "callee": "trim", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L36", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_normalize", "callee": "preg_replace", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L36", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_samename", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L42", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_samename", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L42", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_stripdoctortitle", "callee": "trim", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L48", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_stripdoctortitle", "callee": "preg_replace", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L48", "receiver": null}, {"caller_nid": "util_persiantext_persiantext_stripdoctortitle", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Shared/Util/PersianText.php", "source_location": "L48", "receiver": null}]}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_repository_doctorclaimrequestrepository_php", "label": "DoctorClaimRequestRepository.php", "file_type": "code", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L1"}, {"id": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository", "label": "DoctorClaimRequestRepository", "file_type": "code", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L9"}, {"id": "serviceentityrepository", "label": "ServiceEntityRepository", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L11"}, {"id": "managerregistry", "label": "ManagerRegistry", "file_type": "code", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L11"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_repository_doctorclaimrequestrepository_php", "target": "doctorclaimrequest", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_repository_doctorclaimrequestrepository_php", "target": "serviceentityrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_repository_doctorclaimrequestrepository_php", "target": "managerregistry", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_doctor_repository_doctorclaimrequestrepository_php", "target": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L9", "weight": 1.0}, {"source": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository", "target": "serviceentityrepository", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L9", "weight": 1.0}, {"source": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository", "target": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L11", "weight": 1.0}, {"source": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository_construct", "target": "managerregistry", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L11", "weight": 1.0, "context": "parameter_type"}], "raw_calls": [{"caller_nid": "repository_doctorclaimrequestrepository_doctorclaimrequestrepository_construct", "callee": "parent", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Doctor/Repository/DoctorClaimRequestRepository.php", "source_location": "L13", "receiver": null}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_migrations_version20260711151000_php", "label": "Version20260711151000.php", "file_type": "code", "source_file": "migrations/Version20260711151000.php", "source_location": "L1"}, {"id": "migrations_version20260711151000_version20260711151000", "label": "Version20260711151000", "file_type": "code", "source_file": "migrations/Version20260711151000.php", "source_location": "L14"}, {"id": "abstractmigration", "label": "AbstractMigration", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "migrations_version20260711151000_version20260711151000_getdescription", "label": ".getDescription()", "file_type": "code", "source_file": "migrations/Version20260711151000.php", "source_location": "L16"}, {"id": "migrations_version20260711151000_version20260711151000_up", "label": ".up()", "file_type": "code", "source_file": "migrations/Version20260711151000.php", "source_location": "L21"}, {"id": "schema", "label": "Schema", "file_type": "code", "source_file": "migrations/Version20260711151000.php", "source_location": "L21"}, {"id": "migrations_version20260711151000_version20260711151000_down", "label": ".down()", "file_type": "code", "source_file": "migrations/Version20260711151000.php", "source_location": "L46"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_migrations_version20260711151000_php", "target": "schema", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_migrations_version20260711151000_php", "target": "abstractmigration", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_migrations_version20260711151000_php", "target": "migrations_version20260711151000_version20260711151000", "relation": "contains", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L14", "weight": 1.0}, {"source": "migrations_version20260711151000_version20260711151000", "target": "abstractmigration", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L14", "weight": 1.0}, {"source": "migrations_version20260711151000_version20260711151000", "target": "migrations_version20260711151000_version20260711151000_getdescription", "relation": "method", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L16", "weight": 1.0}, {"source": "migrations_version20260711151000_version20260711151000", "target": "migrations_version20260711151000_version20260711151000_up", "relation": "method", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L21", "weight": 1.0}, {"source": "migrations_version20260711151000_version20260711151000_up", "target": "schema", "relation": "references", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L21", "weight": 1.0, "context": "parameter_type"}, {"source": "migrations_version20260711151000_version20260711151000", "target": "migrations_version20260711151000_version20260711151000_down", "relation": "method", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L46", "weight": 1.0}, {"source": "migrations_version20260711151000_version20260711151000_down", "target": "schema", "relation": "references", "confidence": "EXTRACTED", "source_file": "migrations/Version20260711151000.php", "source_location": "L46", "weight": 1.0, "context": "parameter_type"}], "raw_calls": [{"caller_nid": "migrations_version20260711151000_version20260711151000_up", "callee": "addSql", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/migrations/Version20260711151000.php", "source_location": "L23", "receiver": null}, {"caller_nid": "migrations_version20260711151000_version20260711151000_up", "callee": "addSql", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/migrations/Version20260711151000.php", "source_location": "L42", "receiver": null}, {"caller_nid": "migrations_version20260711151000_version20260711151000_up", "callee": "addSql", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/migrations/Version20260711151000.php", "source_location": "L43", "receiver": null}, {"caller_nid": "migrations_version20260711151000_version20260711151000_down", "callee": "addSql", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/migrations/Version20260711151000.php", "source_location": "L48", "receiver": null}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_docs_scenarios_crawler_md", "label": "crawler.md", "file_type": "document", "source_file": "docs/scenarios/crawler.md", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_docs_scenarios_climed_md", "label": "climed.md", "file_type": "document", "source_file": "docs/scenarios/climed.md", "source_location": "L1"}], "edges": [], "input_tokens": 0, "output_tokens": 0}
File diff suppressed because one or more lines are too long