Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5336-5347 (lines=12) @@
5333
	 * @param Array $properties
5334
	 * @return Array amended properties.
5335
	 */
5336
	public static function filter_register_request_body( $properties ) {
5337
		$tracking        = new Tracking();
5338
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5339
5340
		return array_merge(
5341
			$properties,
5342
			array(
5343
				'_ui' => $tracks_identity['_ui'],
5344
				'_ut' => $tracks_identity['_ut'],
5345
			)
5346
		);
5347
	}
5348
5349
	/**
5350
	 * Filters the token request body to include tracking properties.
@@ 5355-5366 (lines=12) @@
5352
	 * @param Array $properties
5353
	 * @return Array amended properties.
5354
	 */
5355
	public static function filter_token_request_body( $properties ) {
5356
		$tracking        = new Tracking();
5357
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5358
5359
		return array_merge(
5360
			$properties,
5361
			array(
5362
				'_ui' => $tracks_identity['_ui'],
5363
				'_ut' => $tracks_identity['_ut'],
5364
			)
5365
		);
5366
	}
5367
5368
	/**
5369
	 * If the db version is showing something other that what we've got now, bump it to current.