Completed
Push — master ( ddd6e9...2ddb6f )
by Warwick
05:08
created
classes/class-destination.php 1 patch
Braces   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
 				if(isset($_POST['keyword'] )) {
329 329
 					$keyphrases = $_POST['keyword'];
330
-				}else{
330
+				} else{
331 331
 					$keyphrases = array(0);
332 332
                 }
333 333
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
                             $searched_items[sanitize_title($row->name).'-'.$row->meta_value] = $this->format_row($row);
366 366
 
367 367
 
368
-						}else{
368
+						} else{
369 369
 							//Search through each keyword.
370 370
 							foreach($keyphrases as $keyphrase){
371 371
 
@@ -434,13 +434,13 @@  discard block
 block discarded – undo
434 434
 			$wetu_id = $_POST['wetu_id'];
435 435
 			if(isset($_POST['post_id'])){
436 436
 				$post_id = $_POST['post_id'];	
437
-			}else{
437
+			} else{
438 438
 				$post_id = 0;
439 439
 			}
440 440
 
441 441
 			if(isset($_POST['team_members'])){
442 442
 				$team_members = $_POST['team_members'];	
443
-			}else{
443
+			} else{
444 444
 				$team_members = false;
445 445
 			}
446 446
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 				$content = $_POST['content'];
451 451
 				delete_option('wetu_importer_destination_settings');
452 452
 				add_option('wetu_importer_destination_settings',$content);
453
-			}else{
453
+			} else{
454 454
 				delete_option('wetu_importer_destination_settings');
455 455
 				$content = false;
456 456
 			}
@@ -490,10 +490,10 @@  discard block
 block discarded – undo
490 490
 		        if(isset($data[0]['content']['extended_description']))
491 491
 		        {
492 492
 		            $data_post_content = $data[0]['content']['extended_description'];
493
-		        }elseif(isset($data[0]['content']['general_description'])){
493
+		        } elseif(isset($data[0]['content']['general_description'])){
494 494
 		            $data_post_content = $data[0]['content']['general_description'];
495 495
 		            $content_used_general_description = true;
496
-		        }elseif(isset($data[0]['content']['teaser_description'])){
496
+		        } elseif(isset($data[0]['content']['teaser_description'])){
497 497
 		        	$data_post_content = $data[0]['content']['teaser_description'];
498 498
 		        }
499 499
 	        	$post['post_content'] = wp_strip_all_tags($data_post_content);
@@ -503,9 +503,9 @@  discard block
 block discarded – undo
503 503
 	        if(false !== $importable_content && in_array('excerpt',$importable_content)){
504 504
 		        if(isset($data[0]['content']['teaser_description'])){
505 505
 		        	$data_post_excerpt = $data[0]['content']['teaser_description'];
506
-		        }elseif(isset($data[0]['content']['extended_description'])){
506
+		        } elseif(isset($data[0]['content']['extended_description'])){
507 507
 					$data_post_excerpt = $data[0]['content']['extended_description'];
508
-				}elseif(isset($data[0]['content']['general_description']) && false === $content_used_general_description){
508
+				} elseif(isset($data[0]['content']['general_description']) && false === $content_used_general_description){
509 509
 		            $data_post_excerpt = $data[0]['content']['general_description'];
510 510
 		        }	   
511 511
 		        $post['post_excerpt'] = $data_post_excerpt;     	
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 	        	$id = wp_update_post($post);
522 522
 	        	$prev_date = get_post_meta($id,'lsx_wetu_modified_date',true);
523 523
 	        	update_post_meta($id,'lsx_wetu_modified_date',strtotime($data[0]['last_modified']),$prev_date);
524
-	        }else{
524
+	        } else{
525 525
 
526 526
 		        //Set the name
527 527
 		        if(isset($data[0]['name'])){
@@ -621,13 +621,13 @@  discard block
 block discarded – undo
621 621
 
622 622
 			if(isset($data[0]['position']['driving_latitude'])){
623 623
 				$latitude = $data[0]['position']['driving_latitude'];
624
-			}elseif(isset($data[0]['position']['latitude'])){
624
+			} elseif(isset($data[0]['position']['latitude'])){
625 625
 				$latitude = $data[0]['position']['latitude'];
626 626
 			}
627 627
 
628 628
 			if(isset($data[0]['position']['driving_longitude'])){
629 629
 				$longitude = $data[0]['position']['driving_longitude'];
630
-			}elseif(isset($data[0]['position']['longitude'])){
630
+			} elseif(isset($data[0]['position']['longitude'])){
631 631
 				$longitude = $data[0]['position']['longitude'];
632 632
 			}		
633 633
 
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 			if(false !== $id && '0' !== $id){
661 661
 	        	$prev = get_post_meta($id,'location',true);
662 662
 	        	update_post_meta($id,'location',$location_data,$prev);
663
-	        }else{
663
+	        } else{
664 664
 	        	add_post_meta($id,'location',$location_data,true);
665 665
 	        }
666 666
 		}
Please login to merge, or discard this patch.