Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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