Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5284-5295 (lines=12) @@
5281
	 * @param Array $properties
5282
	 * @return Array amended properties.
5283
	 */
5284
	public static function filter_register_request_body( $properties ) {
5285
		$tracking        = new Tracking();
5286
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5287
5288
		return array_merge(
5289
			$properties,
5290
			array(
5291
				'_ui' => $tracks_identity['_ui'],
5292
				'_ut' => $tracks_identity['_ut'],
5293
			)
5294
		);
5295
	}
5296
5297
	/**
5298
	 * Filters the token request body to include tracking properties.
@@ 5303-5314 (lines=12) @@
5300
	 * @param Array $properties
5301
	 * @return Array amended properties.
5302
	 */
5303
	public static function filter_token_request_body( $properties ) {
5304
		$tracking        = new Tracking();
5305
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5306
5307
		return array_merge(
5308
			$properties,
5309
			array(
5310
				'_ui' => $tracks_identity['_ui'],
5311
				'_ut' => $tracks_identity['_ut'],
5312
			)
5313
		);
5314
	}
5315
5316
	/**
5317
	 * If the db version is showing something other that what we've got now, bump it to current.