Code Duplication    Length = 15-15 lines in 2 locations

class.photon.php 1 location

@@ 1016-1030 (lines=15) @@
1013
	 * @action wp_enqueue_script
1014
	 * @return null
1015
	 */
1016
	public function action_wp_enqueue_scripts() {
1017
		if ( Jetpack_AMP_Support::is_amp_request() ) {
1018
			return;
1019
		}
1020
		wp_enqueue_script(
1021
			'jetpack-photon',
1022
			Jetpack::get_file_url_for_environment(
1023
				'_inc/build/photon/photon.min.js',
1024
				'modules/photon/photon.js'
1025
			),
1026
			array( 'jquery' ),
1027
			20130122,
1028
			true
1029
		);
1030
	}
1031
}
1032

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

@@ 320-334 (lines=15) @@
317
		return implode( ' ', $string );
318
	}
319
320
	public function enqueue_assets() {
321
		if ( Jetpack_AMP_Support::is_amp_request() ) {
322
			return;
323
		}
324
		wp_enqueue_script(
325
			'jetpack-lazy-images',
326
			Jetpack::get_file_url_for_environment(
327
				'_inc/build/lazy-images/js/lazy-images.min.js',
328
				'modules/lazy-images/js/lazy-images.js'
329
			),
330
			array( 'jquery' ),
331
			JETPACK__VERSION,
332
			true
333
		);
334
	}
335
}
336