Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5370-5381 (lines=12) @@
5367
	 * @param array $properties
5368
	 * @return array amended properties.
5369
	 */
5370
	public static function filter_register_request_body( $properties ) {
5371
		$tracking        = new Tracking();
5372
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5373
5374
		return array_merge(
5375
			$properties,
5376
			array(
5377
				'_ui' => $tracks_identity['_ui'],
5378
				'_ut' => $tracks_identity['_ut'],
5379
			)
5380
		);
5381
	}
5382
5383
	/**
5384
	 * Filters the token request body to include tracking properties.
@@ 5389-5400 (lines=12) @@
5386
	 * @param array $properties
5387
	 * @return array amended properties.
5388
	 */
5389
	public static function filter_token_request_body( $properties ) {
5390
		$tracking        = new Tracking();
5391
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5392
5393
		return array_merge(
5394
			$properties,
5395
			array(
5396
				'_ui' => $tracks_identity['_ui'],
5397
				'_ut' => $tracks_identity['_ut'],
5398
			)
5399
		);
5400
	}
5401
5402
	/**
5403
	 * If the db version is showing something other that what we've got now, bump it to current.