| Total Complexity | 112 |
| Total Lines | 582 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
Complex classes like Container often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Container, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 114 | class Container |
||
| 115 | { |
||
| 116 | public static ?ContainerInterface $container = null; |
||
| 117 | public static ?Request $request = null; |
||
| 118 | // For legacy, to get the translator service is necessary get it by Container::$container->get('translator') |
||
| 119 | public static ?Translator $translator = null; |
||
| 120 | public static Environment $twig; |
||
| 121 | public static ?Session $session = null; |
||
| 122 | public static string $legacyTemplate = '@ChamiloCore/Layout/layout_one_col.html.twig'; |
||
| 123 | |||
| 124 | public static function setContainer(ContainerInterface $container): void |
||
| 125 | { |
||
| 126 | self::$container = $container; |
||
| 127 | } |
||
| 128 | |||
| 129 | public static function getParameter(string $parameter): array|bool|float|int|string|UnitEnum|null |
||
| 130 | { |
||
| 131 | if (self::$container->hasParameter($parameter)) { |
||
|
|
|||
| 132 | return self::$container->getParameter($parameter); |
||
| 133 | } |
||
| 134 | |||
| 135 | return false; |
||
| 136 | } |
||
| 137 | |||
| 138 | public static function getLegacyHelper(): ContainerHelper |
||
| 139 | { |
||
| 140 | return self::$container->get(ContainerHelper::class); |
||
| 141 | } |
||
| 142 | |||
| 143 | public static function getEnvironment(): string |
||
| 144 | { |
||
| 145 | return self::getLegacyHelper()->getKernel()->getEnvironment(); |
||
| 146 | } |
||
| 147 | |||
| 148 | public static function getLogDir(): string |
||
| 149 | { |
||
| 150 | return self::getLegacyHelper()->getKernel()->getLogDir(); |
||
| 151 | } |
||
| 152 | |||
| 153 | public static function getCacheDir(): string |
||
| 154 | { |
||
| 155 | return self::getLegacyHelper()->getKernel()->getCacheDir().'/'; |
||
| 156 | } |
||
| 157 | |||
| 158 | public static function getProjectDir(): string |
||
| 159 | { |
||
| 160 | if (null !== self::$container) { |
||
| 161 | return self::getLegacyHelper()->getKernel()->getProjectDir().'/'; |
||
| 162 | } |
||
| 163 | |||
| 164 | return str_replace('\\', '/', realpath(__DIR__.'/../../../')).'/'; |
||
| 165 | } |
||
| 166 | |||
| 167 | public static function isInstalled(): bool |
||
| 168 | { |
||
| 169 | return self::getLegacyHelper()->getKernel()->isInstalled(); |
||
| 170 | } |
||
| 171 | |||
| 172 | public static function getMessengerBus(): MessageBusInterface |
||
| 173 | { |
||
| 174 | return self::getLegacyHelper()->getMessengerBus(); |
||
| 175 | } |
||
| 176 | |||
| 177 | public static function getTwig(): Environment |
||
| 178 | { |
||
| 179 | return self::$twig; |
||
| 180 | } |
||
| 181 | |||
| 182 | /** |
||
| 183 | * @return Editor |
||
| 184 | */ |
||
| 185 | public static function getHtmlEditor() |
||
| 186 | { |
||
| 187 | return self::$container->get(CkEditor::class); |
||
| 188 | } |
||
| 189 | |||
| 190 | /** |
||
| 191 | * @return null|Request |
||
| 192 | */ |
||
| 193 | public static function getRequest() |
||
| 194 | { |
||
| 195 | if (null === self::$container) { |
||
| 196 | return null; |
||
| 197 | } |
||
| 198 | |||
| 199 | if (!empty(self::$request)) { |
||
| 200 | return self::$request; |
||
| 201 | } |
||
| 202 | |||
| 203 | return self::$container->get('request_stack')->getCurrentRequest(); |
||
| 204 | } |
||
| 205 | |||
| 206 | public static function setRequest(Request $request): void |
||
| 209 | } |
||
| 210 | |||
| 211 | public static function getSession(): bool|HttpSessionInterface|Session|null |
||
| 212 | { |
||
| 213 | if (null !== self::$session) { |
||
| 214 | return self::$session; |
||
| 215 | } |
||
| 216 | |||
| 217 | if (null !== self::$container) { |
||
| 218 | return self::$container->get('request_stack')->getSession(); |
||
| 219 | } |
||
| 220 | |||
| 221 | return false; |
||
| 222 | } |
||
| 223 | |||
| 224 | public static function setSession(Session $session): void |
||
| 225 | { |
||
| 226 | self::$session = $session; |
||
| 227 | } |
||
| 228 | |||
| 229 | public static function getAuthorizationChecker(): AuthorizationCheckerInterface |
||
| 230 | { |
||
| 231 | return self::getLegacyHelper()->getAuthorizationChecker(); |
||
| 232 | } |
||
| 233 | |||
| 234 | public static function getTokenStorage(): TokenStorageInterface|TokenStorage |
||
| 237 | } |
||
| 238 | |||
| 239 | public static function getMailer(): Mailer |
||
| 240 | { |
||
| 241 | return self::$container->get(Mailer::class); |
||
| 242 | } |
||
| 243 | |||
| 244 | public static function getSettingsManager(): SettingsManager |
||
| 245 | { |
||
| 246 | return self::$container->get(SettingsManager::class); |
||
| 247 | } |
||
| 248 | |||
| 249 | public static function getCourseSettingsManager(): SettingsCourseManager |
||
| 250 | { |
||
| 251 | return self::$container->get(SettingsCourseManager::class); |
||
| 252 | } |
||
| 253 | |||
| 254 | /** |
||
| 255 | * @return EntityManager |
||
| 256 | */ |
||
| 257 | public static function getEntityManager() |
||
| 258 | { |
||
| 259 | return Database::getManager(); |
||
| 260 | } |
||
| 261 | |||
| 262 | public static function getAssetRepository(): AssetRepository |
||
| 263 | { |
||
| 264 | return self::$container->get(AssetRepository::class); |
||
| 265 | } |
||
| 266 | |||
| 267 | public static function getResourceNodeRepository(): ResourceNodeRepository |
||
| 268 | { |
||
| 269 | return self::$container->get(ResourceNodeRepository::class); |
||
| 270 | } |
||
| 271 | |||
| 272 | public static function getAttendanceRepository(): CAttendanceRepository |
||
| 273 | { |
||
| 274 | return self::$container->get(CAttendanceRepository::class); |
||
| 275 | } |
||
| 276 | |||
| 277 | public static function getAnnouncementRepository(): CAnnouncementRepository |
||
| 278 | { |
||
| 279 | return self::$container->get(CAnnouncementRepository::class); |
||
| 280 | } |
||
| 281 | |||
| 282 | public static function getAccessUrlRepository(): AccessUrlRepository |
||
| 283 | { |
||
| 284 | return self::$container->get(AccessUrlRepository::class); |
||
| 285 | } |
||
| 286 | |||
| 287 | public static function getAccessUrlRelPluginRepository(): AccessUrlRelPluginRepository |
||
| 288 | { |
||
| 289 | return self::$container->get(AccessUrlRelPluginRepository::class); |
||
| 290 | } |
||
| 291 | |||
| 292 | public static function getAnnouncementAttachmentRepository(): CAnnouncementAttachmentRepository |
||
| 293 | { |
||
| 294 | return self::$container->get(CAnnouncementAttachmentRepository::class); |
||
| 295 | } |
||
| 296 | |||
| 297 | public static function getTicketMessageAttachmentRepository(): TicketMessageAttachmentRepository |
||
| 298 | { |
||
| 299 | return self::$container->get(TicketMessageAttachmentRepository::class); |
||
| 300 | } |
||
| 301 | |||
| 302 | public static function getSocialPostAttachmentRepository(): SocialPostAttachmentRepository |
||
| 303 | { |
||
| 304 | return self::$container->get(SocialPostAttachmentRepository::class); |
||
| 305 | } |
||
| 306 | |||
| 307 | public static function getCourseRepository(): CourseRepository |
||
| 308 | { |
||
| 309 | return self::$container->get(CourseRepository::class); |
||
| 310 | } |
||
| 311 | |||
| 312 | public static function getCareerRepository(): CareerRepository |
||
| 313 | { |
||
| 314 | return self::$container->get(CareerRepository::class); |
||
| 315 | } |
||
| 316 | |||
| 317 | public static function getCourseCategoryRepository(): CourseCategoryRepository |
||
| 318 | { |
||
| 319 | return self::$container->get(CourseCategoryRepository::class); |
||
| 320 | } |
||
| 321 | |||
| 322 | public static function getCourseDescriptionRepository(): CCourseDescriptionRepository |
||
| 323 | { |
||
| 324 | return self::$container->get(CCourseDescriptionRepository::class); |
||
| 325 | } |
||
| 326 | |||
| 327 | public static function getCalendarEventRepository(): CCalendarEventRepository |
||
| 328 | { |
||
| 329 | return self::$container->get(CCalendarEventRepository::class); |
||
| 330 | } |
||
| 331 | |||
| 332 | public static function getCalendarEventAttachmentRepository(): CCalendarEventAttachmentRepository |
||
| 333 | { |
||
| 334 | return self::$container->get(CCalendarEventAttachmentRepository::class); |
||
| 335 | } |
||
| 336 | |||
| 337 | public static function getDocumentRepository(): CDocumentRepository |
||
| 338 | { |
||
| 339 | return self::$container->get(CDocumentRepository::class); |
||
| 340 | } |
||
| 341 | |||
| 342 | public static function getQuizCategoryRepository(): CQuizCategoryRepository |
||
| 343 | { |
||
| 344 | return self::$container->get(CQuizCategoryRepository::class); |
||
| 345 | } |
||
| 346 | |||
| 347 | public static function getExternalToolRepository(): ExternalToolRepository |
||
| 348 | { |
||
| 349 | return self::$container->get(ExternalToolRepository::class); |
||
| 350 | } |
||
| 351 | |||
| 352 | public static function getExtraFieldRepository(): ExtraFieldRepository |
||
| 353 | { |
||
| 354 | return self::$container->get(ExtraFieldRepository::class); |
||
| 355 | } |
||
| 356 | |||
| 357 | public static function getExtraFieldOptionsRepository(): ExtraFieldOptionsRepository |
||
| 358 | { |
||
| 359 | return self::$container->get(ExtraFieldOptionsRepository::class); |
||
| 360 | } |
||
| 361 | |||
| 362 | public static function getGlossaryRepository(): CGlossaryRepository |
||
| 363 | { |
||
| 364 | return self::$container->get(CGlossaryRepository::class); |
||
| 365 | } |
||
| 366 | |||
| 367 | public static function getGradeBookCategoryRepository(): GradeBookCategoryRepository |
||
| 368 | { |
||
| 369 | return self::$container->get(GradeBookCategoryRepository::class); |
||
| 370 | } |
||
| 371 | |||
| 372 | public static function getGradeBookCertificateRepository(): GradebookCertificateRepository |
||
| 373 | { |
||
| 374 | return self::$container->get(GradebookCertificateRepository::class); |
||
| 375 | } |
||
| 376 | |||
| 377 | public static function getGradebookResultRepository(): GradebookResultRepository |
||
| 378 | { |
||
| 379 | return self::$container->get(GradebookResultRepository::class); |
||
| 380 | } |
||
| 381 | |||
| 382 | public static function getGroupRepository(): CGroupRepository |
||
| 383 | { |
||
| 384 | return self::$container->get(CGroupRepository::class); |
||
| 385 | } |
||
| 386 | |||
| 387 | public static function getGroupCategoryRepository(): CGroupCategoryRepository |
||
| 388 | { |
||
| 389 | return self::$container->get(CGroupCategoryRepository::class); |
||
| 390 | } |
||
| 391 | |||
| 392 | public static function getForumRepository(): CForumRepository |
||
| 393 | { |
||
| 394 | return self::$container->get(CForumRepository::class); |
||
| 395 | } |
||
| 396 | |||
| 397 | public static function getForumCategoryRepository(): CForumCategoryRepository |
||
| 398 | { |
||
| 399 | return self::$container->get(CForumCategoryRepository::class); |
||
| 400 | } |
||
| 401 | |||
| 402 | public static function getForumPostRepository(): CForumPostRepository |
||
| 403 | { |
||
| 404 | return self::$container->get(CForumPostRepository::class); |
||
| 405 | } |
||
| 406 | |||
| 407 | public static function getForumAttachmentRepository(): CForumAttachmentRepository |
||
| 408 | { |
||
| 409 | return self::$container->get(CForumAttachmentRepository::class); |
||
| 410 | } |
||
| 411 | |||
| 412 | public static function getForumThreadRepository(): CForumThreadRepository |
||
| 413 | { |
||
| 414 | return self::$container->get(CForumThreadRepository::class); |
||
| 415 | } |
||
| 416 | |||
| 417 | public static function getIllustrationRepository(): IllustrationRepository |
||
| 418 | { |
||
| 419 | return self::$container->get(IllustrationRepository::class); |
||
| 420 | } |
||
| 421 | |||
| 422 | public static function getQuizRepository(): CQuizRepository |
||
| 423 | { |
||
| 424 | return self::$container->get(CQuizRepository::class); |
||
| 425 | } |
||
| 426 | |||
| 427 | public static function getQuestionRepository(): CQuizQuestionRepository |
||
| 428 | { |
||
| 429 | return self::$container->get(CQuizQuestionRepository::class); |
||
| 430 | } |
||
| 431 | |||
| 432 | public static function getQuestionCategoryRepository(): CQuizQuestionCategoryRepository |
||
| 433 | { |
||
| 434 | return self::$container->get(CQuizQuestionCategoryRepository::class); |
||
| 435 | } |
||
| 436 | |||
| 437 | public static function getLanguageRepository(): LanguageRepository |
||
| 438 | { |
||
| 439 | return self::$container->get(LanguageRepository::class); |
||
| 440 | } |
||
| 441 | |||
| 442 | public static function getLinkRepository(): CLinkRepository |
||
| 445 | } |
||
| 446 | |||
| 447 | public static function getLinkCategoryRepository(): CLinkCategoryRepository |
||
| 448 | { |
||
| 449 | return self::$container->get(CLinkCategoryRepository::class); |
||
| 450 | } |
||
| 451 | |||
| 452 | public static function getLpRepository(): CLpRepository |
||
| 453 | { |
||
| 454 | return self::$container->get(CLpRepository::class); |
||
| 455 | } |
||
| 456 | |||
| 457 | public static function getLpItemRepository(): CLpItemRepository |
||
| 458 | { |
||
| 459 | return self::$container->get(CLpItemRepository::class); |
||
| 460 | } |
||
| 461 | |||
| 462 | public static function getLpCategoryRepository(): CLpCategoryRepository |
||
| 463 | { |
||
| 464 | return self::$container->get(CLpCategoryRepository::class); |
||
| 465 | } |
||
| 466 | |||
| 467 | public static function getMessageRepository(): MessageRepository |
||
| 468 | { |
||
| 469 | return self::$container->get(MessageRepository::class); |
||
| 470 | } |
||
| 471 | |||
| 472 | public static function getMessageAttachmentRepository(): MessageAttachmentRepository |
||
| 473 | { |
||
| 474 | return self::$container->get(MessageAttachmentRepository::class); |
||
| 475 | } |
||
| 476 | |||
| 477 | public static function getNotebookRepository(): CNotebookRepository |
||
| 478 | { |
||
| 479 | return self::$container->get(CNotebookRepository::class); |
||
| 480 | } |
||
| 481 | |||
| 482 | public static function getPersonalFileRepository(): PersonalFileRepository |
||
| 483 | { |
||
| 484 | return self::$container->get(PersonalFileRepository::class); |
||
| 485 | } |
||
| 486 | |||
| 487 | public static function getPromotionRepository(): PromotionRepository |
||
| 488 | { |
||
| 489 | return self::$container->get(PromotionRepository::class); |
||
| 490 | } |
||
| 491 | |||
| 492 | public static function getUserRepository(): UserRepository |
||
| 493 | { |
||
| 494 | return self::$container->get(UserRepository::class); |
||
| 495 | } |
||
| 496 | |||
| 497 | public static function getUsergroupRepository(): UsergroupRepository |
||
| 498 | { |
||
| 499 | return self::$container->get(UsergroupRepository::class); |
||
| 500 | } |
||
| 501 | |||
| 502 | public static function getPluginRepository(): PluginRepository |
||
| 503 | { |
||
| 504 | /** @var PluginRepository $pluginRepo */ |
||
| 505 | return self::$container->get(PluginRepository::class); |
||
| 506 | } |
||
| 507 | |||
| 508 | public static function getUserToJsonNormalizer(): UserToJsonNormalizer |
||
| 509 | { |
||
| 510 | return self::$container->get(UserToJsonNormalizer::class); |
||
| 511 | } |
||
| 512 | |||
| 513 | public static function getShortcutRepository(): CShortcutRepository |
||
| 516 | } |
||
| 517 | |||
| 518 | public static function getStudentPublicationRepository(): CStudentPublicationRepository |
||
| 519 | { |
||
| 520 | return self::$container->get(CStudentPublicationRepository::class); |
||
| 521 | } |
||
| 522 | |||
| 523 | public static function getStudentPublicationAssignmentRepository(): CStudentPublicationAssignmentRepository |
||
| 524 | { |
||
| 525 | return self::$container->get(CStudentPublicationAssignmentRepository::class); |
||
| 526 | } |
||
| 527 | |||
| 528 | public static function getStudentPublicationCommentRepository(): CStudentPublicationCommentRepository |
||
| 529 | { |
||
| 530 | return self::$container->get(CStudentPublicationCommentRepository::class); |
||
| 531 | } |
||
| 532 | |||
| 533 | public static function getStudentPublicationCorrectionRepository(): CStudentPublicationCorrectionRepository |
||
| 534 | { |
||
| 535 | return self::$container->get(CStudentPublicationCorrectionRepository::class); |
||
| 536 | } |
||
| 537 | |||
| 538 | public static function getSequenceResourceRepository(): SequenceResourceRepository |
||
| 539 | { |
||
| 540 | return self::$container->get(SequenceResourceRepository::class); |
||
| 541 | } |
||
| 542 | |||
| 543 | public static function getSequenceRepository(): SequenceRepository |
||
| 544 | { |
||
| 545 | return self::$container->get(SequenceRepository::class); |
||
| 546 | } |
||
| 547 | |||
| 548 | public static function getSessionRepository(): SessionRepository |
||
| 549 | { |
||
| 550 | return self::$container->get(SessionRepository::class); |
||
| 551 | } |
||
| 552 | |||
| 553 | public static function getSkillRepository(): SkillRepository |
||
| 554 | { |
||
| 555 | return self::$container->get(SkillRepository::class); |
||
| 556 | } |
||
| 557 | |||
| 558 | public static function getSurveyRepository(): CSurveyRepository |
||
| 559 | { |
||
| 560 | return self::$container->get(CSurveyRepository::class); |
||
| 561 | } |
||
| 562 | |||
| 563 | public static function getSurveyInvitationRepository(): CSurveyInvitationRepository |
||
| 564 | { |
||
| 565 | return self::$container->get(CSurveyInvitationRepository::class); |
||
| 566 | } |
||
| 567 | |||
| 568 | public static function getSurveyQuestionRepository(): CSurveyQuestionRepository |
||
| 569 | { |
||
| 570 | return self::$container->get(CSurveyQuestionRepository::class); |
||
| 571 | } |
||
| 572 | |||
| 573 | public static function getSysAnnouncementRepository(): SysAnnouncementRepository |
||
| 574 | { |
||
| 575 | return self::$container->get(SysAnnouncementRepository::class); |
||
| 576 | } |
||
| 577 | |||
| 578 | public static function getTagRepository(): TagRepository |
||
| 579 | { |
||
| 580 | return self::$container->get(TagRepository::class); |
||
| 581 | } |
||
| 582 | |||
| 583 | public static function getThematicRepository(): CThematicRepository |
||
| 584 | { |
||
| 585 | return self::$container->get(CThematicRepository::class); |
||
| 586 | } |
||
| 587 | |||
| 588 | public static function getThematicPlanRepository(): CThematicPlanRepository |
||
| 589 | { |
||
| 590 | return self::$container->get(CThematicPlanRepository::class); |
||
| 591 | } |
||
| 592 | |||
| 593 | public static function getThematicAdvanceRepository(): CThematicAdvanceRepository |
||
| 594 | { |
||
| 595 | return self::$container->get(CThematicAdvanceRepository::class); |
||
| 596 | } |
||
| 597 | |||
| 598 | public static function getTrackEExerciseRepository(): TrackEExerciseRepository |
||
| 599 | { |
||
| 600 | return self::$container->get(TrackEExerciseRepository::class); |
||
| 601 | } |
||
| 602 | |||
| 603 | public static function getTrackEDownloadsRepository(): TrackEDownloadsRepository |
||
| 604 | { |
||
| 605 | return self::$container->get(TrackEDownloadsRepository::class); |
||
| 606 | } |
||
| 607 | |||
| 608 | public static function getWikiRepository(): CWikiRepository |
||
| 609 | { |
||
| 610 | return self::$container->get(CWikiRepository::class); |
||
| 611 | } |
||
| 612 | |||
| 613 | public static function getToolIntroRepository(): CToolIntroRepository |
||
| 614 | { |
||
| 615 | return self::$container->get(CToolIntroRepository::class); |
||
| 616 | } |
||
| 617 | |||
| 618 | public static function getLegalRepository(): LegalRepository |
||
| 619 | { |
||
| 620 | return self::$container->get(LegalRepository::class); |
||
| 621 | } |
||
| 622 | |||
| 623 | public static function getFormFactory(): FormFactory |
||
| 624 | { |
||
| 625 | return self::$container->get('form.factory'); |
||
| 626 | } |
||
| 627 | |||
| 628 | public static function addFlash(string $message, string $type = 'success'): void |
||
| 629 | { |
||
| 630 | $type = match ($type) { |
||
| 631 | 'confirmation', 'confirm' => 'success', |
||
| 632 | default => 'info', |
||
| 633 | }; |
||
| 634 | |||
| 635 | $session = self::getSession(); |
||
| 636 | |||
| 637 | if ($session instanceof Session) { |
||
| 638 | $session->getFlashBag()->add($type, $message); |
||
| 639 | } |
||
| 640 | } |
||
| 641 | |||
| 642 | public static function getRouter(): Router |
||
| 643 | { |
||
| 644 | return self::$container->get('router'); |
||
| 645 | } |
||
| 646 | |||
| 647 | public static function getToolChain(): ToolChain |
||
| 648 | { |
||
| 649 | return self::$container->get(ToolChain::class); |
||
| 650 | } |
||
| 651 | |||
| 652 | public static function setLegacyServices(ContainerInterface $container): void |
||
| 660 | } |
||
| 661 | |||
| 662 | public static function getSocialPostRepository(): SocialPostRepository |
||
| 663 | { |
||
| 664 | return self::$container->get(SocialPostRepository::class); |
||
| 665 | } |
||
| 666 | |||
| 667 | public static function getTrackELoginRepository(): TrackELoginRepository |
||
| 668 | { |
||
| 669 | return self::$container->get(TrackELoginRepository::class); |
||
| 670 | } |
||
| 671 | |||
| 672 | public static function getTrackELoginRecordRepository(): TrackELoginRecordRepository |
||
| 673 | { |
||
| 674 | return self::$container->get(TrackELoginRecordRepository::class); |
||
| 675 | } |
||
| 676 | |||
| 677 | public static function getThemeHelper(): ThemeHelper |
||
| 678 | { |
||
| 679 | return self::$container->get(ThemeHelper::class); |
||
| 680 | } |
||
| 681 | |||
| 682 | public static function getPluginHelper(): PluginHelper |
||
| 683 | { |
||
| 684 | return self::$container->get(PluginHelper::class); |
||
| 685 | } |
||
| 686 | |||
| 687 | public static function getAccessUrlUtil(): AccessUrlHelper |
||
| 688 | { |
||
| 689 | return self::$container->get(AccessUrlHelper::class); |
||
| 690 | } |
||
| 691 | |||
| 692 | public static function getEventDispatcher(): EventDispatcherInterface |
||
| 693 | { |
||
| 694 | /** @var EventDispatcherInterface $dispatcher */ |
||
| 695 | return self::$container->get('event_dispatcher'); |
||
| 696 | } |
||
| 697 | } |
||
| 698 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.