Code Duplication    Length = 4-6 lines in 2 locations

classes/class-wetu-importer-banner-integration.php 1 location

@@ 266-269 (lines=4) @@
263
		}
264
265
		// set additional wp_posts columns
266
		if ( empty( $post_data['post_title'] ) ) {
267
			$url_filename = str_replace( '%20',' ',$url_filename );
268
			$post_data['post_title'] = basename( $url_filename, '.' . $url_type['ext'] );         // just use the original filename (no extension)
269
		}
270
271
		// make sure gets tied to parent
272
		if ( empty( $post_data['post_parent'] ) ) {

classes/class-wetu-importer.php 1 location

@@ 1124-1129 (lines=6) @@
1121
		}
1122
1123
		// set additional wp_posts columns
1124
		if ( empty( $post_data['post_title'] ) ) {
1125
1126
			$url_filename = str_replace( '%20',' ',$url_filename );
1127
1128
			$post_data['post_title'] = basename( $url_filename, '.' . $url_type['ext'] );         // just use the original filename (no extension)
1129
		}
1130
1131
		// make sure gets tied to parent
1132
		if ( empty( $post_data['post_parent'] ) ) {