Code Duplication    Length = 14-14 lines in 3 locations

src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php 1 location

@@ 413-426 (lines=14) @@
410
                }
411
412
413
                if ($storage->psalm_internal && $context->self) {
414
                    if (! NamespaceAnalyzer::isWithin($context->self, $storage->psalm_internal)) {
415
                        if (IssueBuffer::accepts(
416
                            new InternalClass(
417
                                $fq_class_name . ' is marked internal to ' . $storage->psalm_internal,
418
                                new CodeLocation($statements_analyzer->getSource(), $stmt),
419
                                $fq_class_name
420
                            ),
421
                            $statements_analyzer->getSuppressedIssues()
422
                        )) {
423
                            // fall through
424
                        }
425
                    }
426
                }
427
428
                if ($storage->internal && $context->self) {
429
                    if (! NamespaceAnalyzer::nameSpaceRootsMatch($context->self, $fq_class_name)) {

src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/InstancePropertyFetchAnalyzer.php 1 location

@@ 823-836 (lines=14) @@
820
                    }
821
                }
822
823
                if ($property_storage->psalm_internal && $context->self) {
824
                    if (! NamespaceAnalyzer::isWithin($context->self, $property_storage->psalm_internal)) {
825
                        if (IssueBuffer::accepts(
826
                            new InternalProperty(
827
                                $property_id . ' is marked internal to ' . $property_storage->psalm_internal,
828
                                new CodeLocation($statements_analyzer->getSource(), $stmt),
829
                                $property_id
830
                            ),
831
                            $statements_analyzer->getSuppressedIssues()
832
                        )) {
833
                            // fall through
834
                        }
835
                    }
836
                }
837
838
                if ($property_storage->internal && $context->self) {
839
                    if (! NamespaceAnalyzer::nameSpaceRootsMatch($context->self, $declaring_property_class)) {

src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php 1 location

@@ 680-693 (lines=14) @@
677
                        }
678
                    }
679
680
                    if ($property_storage->psalm_internal && $context->self) {
681
                        if (! NamespaceAnalyzer::isWithin($context->self, $property_storage->psalm_internal)) {
682
                            if (IssueBuffer::accepts(
683
                                new InternalProperty(
684
                                    $property_id . ' is marked internal to ' . $property_storage->psalm_internal,
685
                                    new CodeLocation($statements_analyzer->getSource(), $stmt),
686
                                    $property_id
687
                                ),
688
                                $statements_analyzer->getSuppressedIssues()
689
                            )) {
690
                                // fall through
691
                            }
692
                        }
693
                    }
694
695
                    if ($property_storage->internal && $context->self) {
696
                        if (! NamespaceAnalyzer::nameSpaceRootsMatch($context->self, $declaring_property_class)) {