Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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