Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5253-5264 (lines=12) @@
5250
	 * @param Array $properties
5251
	 * @return Array amended properties.
5252
	 */
5253
	public static function filter_register_request_body( $properties ) {
5254
		$tracking        = new Tracking();
5255
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5256
5257
		return array_merge(
5258
			$properties,
5259
			array(
5260
				'_ui' => $tracks_identity['_ui'],
5261
				'_ut' => $tracks_identity['_ut'],
5262
			)
5263
		);
5264
	}
5265
5266
	/**
5267
	 * Filters the token request body to include tracking properties.
@@ 5272-5283 (lines=12) @@
5269
	 * @param Array $properties
5270
	 * @return Array amended properties.
5271
	 */
5272
	public static function filter_token_request_body( $properties ) {
5273
		$tracking        = new Tracking();
5274
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5275
5276
		return array_merge(
5277
			$properties,
5278
			array(
5279
				'_ui' => $tracks_identity['_ui'],
5280
				'_ut' => $tracks_identity['_ut'],
5281
			)
5282
		);
5283
	}
5284
5285
	/**
5286
	 * If the db version is showing something other that what we've got now, bump it to current.