Code Duplication    Length = 8-11 lines in 2 locations

core/EE_System.core.php 2 locations

@@ 712-719 (lines=8) @@
709
            } else {
710
                // its not an update. maybe a reactivation?
711
                if (get_option($activation_indicator_option_name, false)) {
712
                    if ($version_is_higher === -1) {
713
                        $req_type = EE_System::req_type_downgrade;
714
                    } elseif ($version_is_higher === 0) {
715
                        // we've seen this version before, but it's an activation. must be a reactivation
716
                        $req_type = EE_System::req_type_reactivation;
717
                    } else {// $version_is_higher === 1
718
                        $req_type = EE_System::req_type_upgrade;
719
                    }
720
                    delete_option($activation_indicator_option_name);
721
                } else {
722
                    // we've seen this version before and the activation indicate doesn't show it was just activated
@@ 721-731 (lines=11) @@
718
                        $req_type = EE_System::req_type_upgrade;
719
                    }
720
                    delete_option($activation_indicator_option_name);
721
                } else {
722
                    // we've seen this version before and the activation indicate doesn't show it was just activated
723
                    if ($version_is_higher === -1) {
724
                        $req_type = EE_System::req_type_downgrade;
725
                    } elseif ($version_is_higher === 0) {
726
                        // we've seen this version before and it's not an activation. its normal request
727
                        $req_type = EE_System::req_type_normal;
728
                    } else {// $version_is_higher === 1
729
                        $req_type = EE_System::req_type_upgrade;
730
                    }
731
                }
732
            }
733
        } else {
734
            // brand new install