Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 322-326 (lines=5) @@
319
	 public function register_inline_script( $handle, $file, $plugin_file, $deps = false, $ver = false, $in_footer = false ) {
320
		$registered = wp_register_script( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $in_footer );
321
322
		if ( $registered ) {
323
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
324
			wp_script_add_data( $handle, 'jetpack-inline', true );
325
			wp_script_add_data( $handle, 'jetpack-inline-file', $file_full_path );
326
		}
327
328
		return $registered;
329
	}
@@ 339-343 (lines=5) @@
336
	public function register_inline_style( $handle, $file, $plugin_file, $deps = array(), $ver = false, $media = 'all' ) {
337
		$registered = wp_register_style( $handle, plugins_url( $file, $plugin_file ), $deps, $ver, $media );
338
339
		if ( $registered ) {
340
			$file_full_path = dirname( $plugin_file ) . '/' . $file;
341
			wp_style_add_data( $handle, 'jetpack-inline', true );
342
			wp_style_add_data( $handle, 'jetpack-inline-file', $file_full_path );
343
		}
344
	}
345
}
346