Code Duplication    Length = 8-11 lines in 2 locations

core/EE_System.core.php 2 locations

@@ 446-453 (lines=8) @@
443
			} else {
444
				// its not an update. maybe a reactivation?
445
				if( get_option( $activation_indicator_option_name, FALSE ) ){
446
					if ( $version_is_higher === -1 ){
447
						$req_type = EE_System::req_type_downgrade;
448
					}elseif( $version_is_higher === 0 ){
449
						//we've seen this version before, but it's an activation. must be a reactivation
450
						$req_type = EE_System::req_type_reactivation;
451
					}else{//$version_is_higher === 1
452
						$req_type = EE_System::req_type_upgrade;
453
					}
454
					delete_option( $activation_indicator_option_name );
455
				} else {
456
					//we've seen this version before and the activation indicate doesn't show it was just activated
@@ 455-465 (lines=11) @@
452
						$req_type = EE_System::req_type_upgrade;
453
					}
454
					delete_option( $activation_indicator_option_name );
455
				} else {
456
					//we've seen this version before and the activation indicate doesn't show it was just activated
457
					if ( $version_is_higher === -1 ){
458
						$req_type = EE_System::req_type_downgrade;
459
					}elseif( $version_is_higher === 0 ){
460
						//we've seen this version before and it's not an activation. its normal request
461
						$req_type = EE_System::req_type_normal;
462
					}else{//$version_is_higher === 1
463
						$req_type = EE_System::req_type_upgrade;
464
					}
465
				}
466
			}
467
		} else {
468
			//brand new install