Code Duplication    Length = 3-3 lines in 2 locations

classes/fields/file.php 2 locations

@@ 759-761 (lines=3) @@
756
			$shortcode_args['orderby'] = 'rand';
757
		}
758
759
		if ( ! empty( $options[ static::$type . '_wp_gallery_link' ] ) ) {
760
			$shortcode_args['link'] = $options[ static::$type . '_wp_gallery_link' ];
761
		}
762
763
		if ( ! empty( $options[ static::$type . '_wp_gallery_size' ] ) ) {
764
			$shortcode_args['size'] = $options[ static::$type . '_wp_gallery_size' ];
@@ 763-765 (lines=3) @@
760
			$shortcode_args['link'] = $options[ static::$type . '_wp_gallery_link' ];
761
		}
762
763
		if ( ! empty( $options[ static::$type . '_wp_gallery_size' ] ) ) {
764
			$shortcode_args['size'] = $options[ static::$type . '_wp_gallery_size' ];
765
		}
766
767
		if ( isset( $value['ID'] ) ) {
768
			$shortcode_args['ids'] = $value['ID'];