Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5406-5417 (lines=12) @@
5403
	 * @param array $properties
5404
	 * @return array amended properties.
5405
	 */
5406
	public static function filter_register_request_body( $properties ) {
5407
		$tracking        = new Tracking();
5408
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5409
5410
		return array_merge(
5411
			$properties,
5412
			array(
5413
				'_ui' => $tracks_identity['_ui'],
5414
				'_ut' => $tracks_identity['_ut'],
5415
			)
5416
		);
5417
	}
5418
5419
	/**
5420
	 * Filters the token request body to include tracking properties.
@@ 5425-5436 (lines=12) @@
5422
	 * @param array $properties
5423
	 * @return array amended properties.
5424
	 */
5425
	public static function filter_token_request_body( $properties ) {
5426
		$tracking        = new Tracking();
5427
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5428
5429
		return array_merge(
5430
			$properties,
5431
			array(
5432
				'_ui' => $tracks_identity['_ui'],
5433
				'_ut' => $tracks_identity['_ut'],
5434
			)
5435
		);
5436
	}
5437
5438
	/**
5439
	 * If the db version is showing something other that what we've got now, bump it to current.