Skip to main content

Dependency analysis of lib/ at d20a7aee8caa890714328a1e9c61719858f19e1b

6846 PHP files, 414315 lines of code, 20992 references between files (lib/Migration left out). Produced by tools/sig/analyse_dependencies.py.

Component views​

ViewComponentsLargestHidden codeCommunication linesViolation degree
directories under lib/38Service (54.7%)89.4%1980.0505
functional areas10Core (33.4%)64.9%830.1879

7 files are not matched by the functional definition and were placed by directory majority (see results.json).

Layering​

Of 19973 references between layered files, 7386 go downward (37.0%), 12332 stay on the same level and 255 go upward (1.3%). 1019 references touch the bootstrap or an unlayered directory.

Upward referenceCountExample
persistence -> service171lib/Db/AuditFlowAttribution.php -> lib/Service/Flow/FlowRunContextInterface.php
shared type -> persistence48lib/ContextChat/Support/ContentProviderSources.php -> lib/Db/MagicMapperInterface.php
service -> entry point22lib/Notifications/Service/Notification/NcNotificationSender.php -> lib/Notifications/BackgroundJob/WebPushDispatchJob.php
shared type -> service12lib/Contacts/Support/ContactsMenuSources.php -> lib/Service/DeepLinkResolverInterface.php
persistence -> entry point1lib/Db/MagicMapper.php -> lib/BackgroundJob/JobHandles.php
shared type -> entry point1lib/Event/ObjectEventSubscription.php -> lib/Listener/ListenerClassesInterface.php

Cycles​

113 sets of files reference each other in a cycle, 582 files in all. The largest holds 230 files and 24524 lines (5.9% of lib/).

By directory: Db/MagicMapper 64, Service/Rbac 29, Service 20, Service/Object 18, Event 16, Db 13, BackgroundJob 12, Service/Lifecycle 12, Db/Schema 10, Service/Schema 9, BackgroundJob/Support 7, Service/Query 5, Service/Form 3, Service/Deletion 2, Service/Deferral 2, Notifications/Service 1, Service/Edepot 1, Search/Service 1, Service/Archival 1, Db/AuditTrail 1, Exception 1, Service/Audit 1, Kernel/Contracts 1

By area: Core 162, Processes 23, Kernel 20, Compliance 18, Configuration 2, Search 2, Platform 1, Integrations 1, Notifications 1

Files with the most references inside the set:

  • lib/Db/MagicMapper.php (59 references inside the set)
  • lib/Db/MagicMapper/MagicSearchHandler.php (21 references inside the set)
  • lib/Db/MagicMapper/MagicRbacHandler.php (17 references inside the set)
  • lib/Db/MagicMapperInterface.php (14 references inside the set)
  • lib/Db/MagicMapper/MagicFacetHandler.php (11 references inside the set)
  • lib/Service/Lifecycle/TransitionEngine.php (10 references inside the set)
  • lib/BackgroundJob/JobHandles.php (10 references inside the set)
  • lib/Service/Object/ObjectEventGate.php (9 references inside the set)
  • lib/Service/PropertyRbacHandler.php (9 references inside the set)
  • lib/Service/Schema/SchemaMigrationService.php (9 references inside the set)

50 of the references inside the set go upward a layer; results.json lists them.

Functional areas​

AreaLinesExposedInternal refsOutgoing refsIncoming refs
Core13838839.6%404227581934
Processes7935443.6%32911461836
Integrations5189836.5%1495945557
Configuration5034417.7%12091715257
Compliance3087254.0%837592466
Notifications183766.9%573283136
Files165663.4%41523674
Search1412910.6%338238154
Kernel772091.0%1631103893
Platform666817.0%85206237

Area pairs that reference each other in both directions, heaviest lighter direction first:

PairReferencesLighter directionMost referenced in the lighter direction
Core / Processes295 / 321Core -> ProcessesService/PropertyAccessRequest.php, BulkAction/BulkActionInterface.php, Service/PropertyRbacHandler.php
Compliance / Core254 / 219Core -> ComplianceDb/AuditTrail.php, Db/AuditTrail/ObjectAuditEvent.php, Db/AuditTrail/NamedActor.php
Core / Integrations215 / 413Core -> IntegrationsDb/Source.php, Db/AccessLink.php, Service/LinkTarget.php
Configuration / Core609 / 131Core -> ConfigurationService/SchemaProperty.php, Db/Configuration.php, Service/LanguageService.php
Core / Kernel1700 / 82Kernel -> CoreEvent/AbstractObjectEntityEvent.php, Event/AbstractSchemaEvent.php, Event/AbstractPersonLinkEvent.php
Core / Search79 / 85Core -> SearchDb/RegisterSchema.php, Search/Service/Aggregation/AggregationQuery.php, Search/Db/ViewMapperInterface.php
Integrations / Processes72 / 108Integrations -> ProcessesDb/Flow.php, Db/FormLinkMapperInterface.php, Service/Flow/FlowServiceInterface.php
Core / Files52 / 66Core -> FilesService/FileHandlerSupportInterface.php, Files/Db/FileMapperInterface.php, Files/Service/File/FileOwnershipHandlerInterface.php
Core / Platform44 / 63Core -> PlatformAppInfo/Application.php, Db/TranslationMapperInterface.php, Service/LanguageServiceInterface.php
Integrations / Platform32 / 36Integrations -> PlatformAppInfo/Application.php, Db/TranslationSourceLanguageBackfillInterface.php
Notifications / Processes27 / 53Notifications -> ProcessesDb/Task.php, Service/Interaction/WatcherServiceInterface.php, Service/Task/TaskInboxServiceInterface.php
Configuration / Processes383 / 26Processes -> ConfigurationDb/TaskSequence.php, Service/SequenceScope.php, Db/Translation.php
Configuration / Integrations149 / 24Integrations -> ConfigurationDb/Application.php, Db/HydrateBySettersTrait.php, Db/Configuration.php
Compliance / Configuration24 / 155Compliance -> ConfigurationService/Settings/ArchivalSettingsReaderInterface.php, Db/HydrateBySettersTrait.php, Service/Settings/FileSettingsHandler.php
Core / Notifications23 / 41Core -> NotificationsNotifications/Service/TimelineVisibilityServiceInterface.php, Notifications/Service/Notification/NotificationDeclarationException.php, Db/FeedbackMapperInterface.php