Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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