Code Duplication    Length = 9-10 lines in 2 locations

projects/plugins/jetpack/class.jetpack-idc.php 1 location

@@ 48-56 (lines=9) @@
45
		return self::$instance;
46
	}
47
48
	private function __construct() {
49
		add_action( 'jetpack_sync_processed_actions', array( $this, 'maybe_clear_migrate_option' ) );
50
		if ( false === $urls_in_crisis = Jetpack::check_identity_crisis() ) {
51
			return;
52
		}
53
54
		self::$wpcom_home_url = $urls_in_crisis['wpcom_home'];
55
		add_action( 'init', array( $this, 'wordpress_init' ) );
56
	}
57
58
	/**
59
	 * Gets the link to the support document used to explain Safe Mode to users

projects/packages/identity-crisis/src/class-identity-crisis.php 1 location

@@ 78-87 (lines=10) @@
75
	 *
76
	 * @return void
77
	 */
78
	private function __construct() {
79
		add_action( 'jetpack_sync_processed_actions', array( $this, 'maybe_clear_migrate_option' ) );
80
		$urls_in_crisis = self::check_identity_crisis();
81
		if ( false === $urls_in_crisis ) {
82
			return;
83
		}
84
85
		self::$wpcom_home_url = $urls_in_crisis['wpcom_home'];
86
		add_action( 'init', array( $this, 'wordpress_init' ) );
87
	}
88
89
	/**
90
	 * Gets the link to the support document used to explain Safe Mode to users.