Code Duplication    Length = 2-4 lines in 2 locations

class.jetpack-network.php 1 location

@@ 501-504 (lines=4) @@
498
			$json = false;
499
		}
500
501
		if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) {
502
			restore_current_blog();
503
			return new Jetpack_Error( 'jetpack_secret', '', $code );
504
		}
505
506
		if ( isset( $json->jetpack_public ) ) {
507
			$jetpack_public = (int) $json->jetpack_public;

class.jetpack.php 1 location

@@ 5076-5077 (lines=2) @@
5073
		else
5074
			$json = false;
5075
5076
		if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) )
5077
			return new Jetpack_Error( 'jetpack_secret', '', $code );
5078
5079
		if ( isset( $json->jetpack_public ) ) {
5080
			$jetpack_public = (int) $json->jetpack_public;