Code Duplication    Length = 8-11 lines in 2 locations

core/EE_System.core.php 2 locations

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