Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5311-5322 (lines=12) @@
5308
	 * @param Array $properties
5309
	 * @return Array amended properties.
5310
	 */
5311
	public static function filter_register_request_body( $properties ) {
5312
		$tracking        = new Tracking();
5313
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5314
5315
		return array_merge(
5316
			$properties,
5317
			array(
5318
				'_ui' => $tracks_identity['_ui'],
5319
				'_ut' => $tracks_identity['_ut'],
5320
			)
5321
		);
5322
	}
5323
5324
	/**
5325
	 * Filters the token request body to include tracking properties.
@@ 5330-5341 (lines=12) @@
5327
	 * @param Array $properties
5328
	 * @return Array amended properties.
5329
	 */
5330
	public static function filter_token_request_body( $properties ) {
5331
		$tracking        = new Tracking();
5332
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5333
5334
		return array_merge(
5335
			$properties,
5336
			array(
5337
				'_ui' => $tracks_identity['_ui'],
5338
				'_ut' => $tracks_identity['_ut'],
5339
			)
5340
		);
5341
	}
5342
5343
	/**
5344
	 * If the db version is showing something other that what we've got now, bump it to current.