Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 681-685 (lines=5) @@
678
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
679
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
680
681
		if ( $registered ) {
682
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
683
			wp_script_add_data( $handle, 'jetpack-inline', true );
684
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
685
		}
686
687
		return $registered;
688
	}
@@ 698-702 (lines=5) @@
695
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
696
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
697
698
		if ( $registered ) {
699
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
700
			wp_style_add_data( $handle, 'jetpack-inline', true );
701
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
702
		}
703
	}
704
}
705