Code Duplication    Length = 6-6 lines in 2 locations

_inc/lib/debugger/class-jetpack-debug-data.php 2 locations

@@ 179-184 (lines=6) @@
176
		$user_token = Jetpack_Data::get_access_token( $user_id );
177
178
		$tokenset = '';
179
		if ( $blog_token ) {
180
			$tokenset = 'Blog ';
181
			$blog_key = substr( $blog_token->secret, 0, strpos( $blog_token->secret, '.' ) );
182
			// Intentionally not translated since this is helpful when sent to Happiness.
183
			$blog_key = ( $blog_key ) ? $blog_key : 'Potentially Malformed Token.';
184
		}
185
		if ( $user_token ) {
186
			$tokenset .= 'User';
187
			$user_key  = substr( $user_token->secret, 0, strpos( $user_token->secret, '.' ) );
@@ 185-190 (lines=6) @@
182
			// Intentionally not translated since this is helpful when sent to Happiness.
183
			$blog_key = ( $blog_key ) ? $blog_key : 'Potentially Malformed Token.';
184
		}
185
		if ( $user_token ) {
186
			$tokenset .= 'User';
187
			$user_key  = substr( $user_token->secret, 0, strpos( $user_token->secret, '.' ) );
188
			// Intentionally not translated since this is helpful when sent to Happiness.
189
			$user_key = ( $user_key ) ? $user_key : 'Potentially Malformed Token.';
190
		}
191
		if ( ! $tokenset ) {
192
			$tokenset = 'None';
193
		}