Code Duplication    Length = 7-9 lines in 2 locations

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

@@ 216-224 (lines=9) @@
213
	 *
214
	 * @return array|bool Array of options that are in a crisis, or false if everything is OK.
215
	 */
216
	public static function check_identity_crisis() {
217
		$connection = new Connection_Manager( 'jetpack' );
218
219
		if ( ! $connection->is_active() || ( new Status() )->is_offline_mode() || ! self::validate_sync_error_idc_option() ) {
220
			return false;
221
		}
222
223
		return Jetpack_Options::get_option( 'sync_error_idc' );
224
	}
225
226
	/**
227
	 * Prepare URL for display.

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

@@ 6189-6195 (lines=7) @@
6186
	 *
6187
	 * @return array|bool Array of options that are in a crisis, or false if everything is OK.
6188
	 */
6189
	public static function check_identity_crisis() {
6190
		if ( ! self::is_active() || ( new Status() )->is_offline_mode() || ! self::validate_sync_error_idc_option() ) {
6191
			return false;
6192
		}
6193
6194
		return Jetpack_Options::get_option( 'sync_error_idc' );
6195
	}
6196
6197
	/**
6198
	 * Checks whether the home and siteurl specifically are allowed.