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

@@ 1156-1161 (lines=6) @@
1153
		}
1154
1155
		// set additional wp_posts columns
1156
		if ( empty( $post_data['post_title'] ) ) {
1157
1158
			$url_filename = str_replace( '%20',' ',$url_filename );
1159
1160
			$post_data['post_title'] = basename( $url_filename, '.' . $url_type['ext'] );         // just use the original filename (no extension)
1161
		}
1162
1163
		// make sure gets tied to parent
1164
		if ( empty( $post_data['post_parent'] ) ) {