Code Duplication    Length = 3-4 lines in 2 locations

class.jetpack.php 1 location

@@ 5160-5162 (lines=3) @@
5157
			return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) );
5158
		}
5159
5160
		if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) {
5161
			return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) );
5162
		}
5163
5164
		if ( isset( $registration_details->jetpack_public ) ) {
5165
			$jetpack_public = (int) $registration_details->jetpack_public;

class.jetpack-network.php 1 location

@@ 538-541 (lines=4) @@
535
			$json = false;
536
		}
537
538
		if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) {
539
			restore_current_blog();
540
			return new Jetpack_Error( 'jetpack_secret', '', $code );
541
		}
542
543
		if ( isset( $json->jetpack_public ) ) {
544
			$jetpack_public = (int) $json->jetpack_public;