Code Duplication    Length = 7-7 lines in 2 locations

classes/lsx-banners-integration.php 1 location

@@ 258-264 (lines=7) @@
255
		}
256
257
		// set additional wp_posts columns
258
		if ( empty( $post_data['post_title'] ) )
259
		{
260
261
			$url_filename=str_replace('%20',' ',$url_filename);
262
263
			$post_data['post_title'] = basename($url_filename, "." . $url_type['ext']);         // just use the original filename (no extension)
264
		}
265
266
		// make sure gets tied to parent
267
		if ( empty( $post_data['post_parent'] ) )

classes/class-importer.php 1 location

@@ 1015-1021 (lines=7) @@
1012
		}
1013
1014
		// set additional wp_posts columns
1015
		if ( empty( $post_data['post_title'] ) )
1016
		{
1017
1018
			$url_filename=str_replace('%20',' ',$url_filename);
1019
1020
			$post_data['post_title'] = basename($url_filename, "." . $url_type['ext']);         // just use the original filename (no extension)
1021
		}
1022
1023
		// make sure gets tied to parent
1024
		if ( empty( $post_data['post_parent'] ) )