Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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