Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 574-578 (lines=5) @@
571
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
572
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
573
574
		if ( $registered ) {
575
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
576
			wp_script_add_data( $handle, 'jetpack-inline', true );
577
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
578
		}
579
580
		return $registered;
581
	}
@@ 591-595 (lines=5) @@
588
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
589
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
590
591
		if ( $registered ) {
592
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
593
			wp_style_add_data( $handle, 'jetpack-inline', true );
594
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
595
		}
596
	}
597
}
598