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

@@ 995-1001 (lines=7) @@
992
		}
993
994
		// set additional wp_posts columns
995
		if ( empty( $post_data['post_title'] ) )
996
		{
997
998
			$url_filename=str_replace('%20',' ',$url_filename);
999
1000
			$post_data['post_title'] = basename($url_filename, "." . $url_type['ext']);         // just use the original filename (no extension)
1001
		}
1002
1003
		// make sure gets tied to parent
1004
		if ( empty( $post_data['post_parent'] ) )