Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5273-5284 (lines=12) @@
5270
	 * @param Array $properties
5271
	 * @return Array amended properties.
5272
	 */
5273
	public static function filter_register_request_body( $properties ) {
5274
		$tracking        = new Tracking();
5275
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5276
5277
		return array_merge(
5278
			$properties,
5279
			array(
5280
				'_ui' => $tracks_identity['_ui'],
5281
				'_ut' => $tracks_identity['_ut'],
5282
			)
5283
		);
5284
	}
5285
5286
	/**
5287
	 * Filters the token request body to include tracking properties.
@@ 5292-5303 (lines=12) @@
5289
	 * @param Array $properties
5290
	 * @return Array amended properties.
5291
	 */
5292
	public static function filter_token_request_body( $properties ) {
5293
		$tracking        = new Tracking();
5294
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5295
5296
		return array_merge(
5297
			$properties,
5298
			array(
5299
				'_ui' => $tracks_identity['_ui'],
5300
				'_ut' => $tracks_identity['_ut'],
5301
			)
5302
		);
5303
	}
5304
5305
	/**
5306
	 * If the db version is showing something other that what we've got now, bump it to current.