Code Duplication    Length = 11-11 lines in 2 locations

src/Psalm/Internal/Analyzer/Statements/Block/LoopAnalyzer.php 2 locations

@@ 665-675 (lines=11) @@
662
663
        $suppressed_issues = $statements_analyzer->getSuppressedIssues();
664
665
        if ($is_do) {
666
            if (!in_array('RedundantCondition', $suppressed_issues, true)) {
667
                $statements_analyzer->addSuppressedIssues(['RedundantCondition']);
668
            }
669
            if (!in_array('RedundantConditionGivenDocblockType', $suppressed_issues, true)) {
670
                $statements_analyzer->addSuppressedIssues(['RedundantConditionGivenDocblockType']);
671
            }
672
            if (!in_array('TypeDoesNotContainType', $suppressed_issues, true)) {
673
                $statements_analyzer->addSuppressedIssues(['TypeDoesNotContainType']);
674
            }
675
        }
676
677
        if (ExpressionAnalyzer::analyze($statements_analyzer, $pre_condition, $loop_context) === false) {
678
            return [];
@@ 718-728 (lines=11) @@
715
            $loop_context->vars_in_scope = $pre_condition_vars_in_scope_reconciled;
716
        }
717
718
        if ($is_do) {
719
            if (!in_array('RedundantCondition', $suppressed_issues, true)) {
720
                $statements_analyzer->removeSuppressedIssues(['RedundantCondition']);
721
            }
722
            if (!in_array('RedundantConditionGivenDocblockType', $suppressed_issues, true)) {
723
                $statements_analyzer->removeSuppressedIssues(['RedundantConditionGivenDocblockType']);
724
            }
725
            if (!in_array('TypeDoesNotContainType', $suppressed_issues, true)) {
726
                $statements_analyzer->removeSuppressedIssues(['TypeDoesNotContainType']);
727
            }
728
        }
729
730
        if ($is_do) {
731
            return [];