Code Duplication    Length = 8-11 lines in 2 locations

core/EE_System.core.php 2 locations

@@ 664-671 (lines=8) @@
661
            } else {
662
                // its not an update. maybe a reactivation?
663
                if (get_option($activation_indicator_option_name, false)) {
664
                    if ($version_is_higher === -1) {
665
                        $req_type = EE_System::req_type_downgrade;
666
                    } else if ($version_is_higher === 0) {
667
                        //we've seen this version before, but it's an activation. must be a reactivation
668
                        $req_type = EE_System::req_type_reactivation;
669
                    } else {//$version_is_higher === 1
670
                        $req_type = EE_System::req_type_upgrade;
671
                    }
672
                    delete_option($activation_indicator_option_name);
673
                } else {
674
                    //we've seen this version before and the activation indicate doesn't show it was just activated
@@ 673-683 (lines=11) @@
670
                        $req_type = EE_System::req_type_upgrade;
671
                    }
672
                    delete_option($activation_indicator_option_name);
673
                } else {
674
                    //we've seen this version before and the activation indicate doesn't show it was just activated
675
                    if ($version_is_higher === -1) {
676
                        $req_type = EE_System::req_type_downgrade;
677
                    } else if ($version_is_higher === 0) {
678
                        //we've seen this version before and it's not an activation. its normal request
679
                        $req_type = EE_System::req_type_normal;
680
                    } else {//$version_is_higher === 1
681
                        $req_type = EE_System::req_type_upgrade;
682
                    }
683
                }
684
            }
685
        } else {
686
            //brand new install