Code Duplication    Length = 5-5 lines in 2 locations

modules/perf/class.jetpack-perf-optimize-assets.php 2 locations

@@ 430-434 (lines=5) @@
427
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
428
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
429
430
		if ( $registered ) {
431
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
432
			wp_script_add_data( $handle, 'jetpack-inline', true );
433
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
434
		}
435
436
		return $registered;
437
	}
@@ 447-451 (lines=5) @@
444
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
445
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
446
447
		if ( $registered ) {
448
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
449
			wp_style_add_data( $handle, 'jetpack-inline', true );
450
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
451
		}
452
	}
453
}
454