Code Duplication    Length = 15-15 lines in 2 locations

modules/lazy-images/lazy-images.php 1 location

@@ 341-355 (lines=15) @@
338
		return implode( ' ', $string );
339
	}
340
341
	public function enqueue_assets() {
342
		if ( Jetpack_AMP_Support::is_amp_request() ) {
343
			return;
344
		}
345
		wp_enqueue_script(
346
			'jetpack-lazy-images',
347
			Jetpack::get_file_url_for_environment(
348
				'_inc/build/lazy-images/js/lazy-images.min.js',
349
				'modules/lazy-images/js/lazy-images.js'
350
			),
351
			array( 'jquery' ),
352
			JETPACK__VERSION,
353
			true
354
		);
355
	}
356
}
357

class.photon.php 1 location

@@ 1019-1033 (lines=15) @@
1016
	 * @action wp_enqueue_script
1017
	 * @return null
1018
	 */
1019
	public function action_wp_enqueue_scripts() {
1020
		if ( Jetpack_AMP_Support::is_amp_request() ) {
1021
			return;
1022
		}
1023
		wp_enqueue_script(
1024
			'jetpack-photon',
1025
			Jetpack::get_file_url_for_environment(
1026
				'_inc/build/photon/photon.min.js',
1027
				'modules/photon/photon.js'
1028
			),
1029
			array( 'jquery' ),
1030
			20130122,
1031
			true
1032
		);
1033
	}
1034
1035
	/**
1036
	 * Determine if image_downsize should utilize Photon via REST API.