Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5395-5406 (lines=12) @@
5392
	 * @param array $properties
5393
	 * @return array amended properties.
5394
	 */
5395
	public static function filter_register_request_body( $properties ) {
5396
		$tracking        = new Tracking();
5397
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5398
5399
		return array_merge(
5400
			$properties,
5401
			array(
5402
				'_ui' => $tracks_identity['_ui'],
5403
				'_ut' => $tracks_identity['_ut'],
5404
			)
5405
		);
5406
	}
5407
5408
	/**
5409
	 * Filters the token request body to include tracking properties.
@@ 5414-5425 (lines=12) @@
5411
	 * @param array $properties
5412
	 * @return array amended properties.
5413
	 */
5414
	public static function filter_token_request_body( $properties ) {
5415
		$tracking        = new Tracking();
5416
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5417
5418
		return array_merge(
5419
			$properties,
5420
			array(
5421
				'_ui' => $tracks_identity['_ui'],
5422
				'_ut' => $tracks_identity['_ut'],
5423
			)
5424
		);
5425
	}
5426
5427
	/**
5428
	 * If the db version is showing something other that what we've got now, bump it to current.