Code Duplication    Length = 2-2 lines in 3 locations

core/db_models/EEM_Base.model.php 3 locations

@@ 1625-1626 (lines=2) @@
1622
					foreach ( $other_tables as $ot ) {
1623
1624
						//first check if we've got the foreign key column here.
1625
						if ( isset( $delete_object[$ot->get_fully_qualified_fk_column()] ) )
1626
							$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_fk_column()];
1627
1628
						//wait! it's entirely possible that we'll have a the primary key for this table in here if it's a foreign key for one of the other secondary tables
1629
						if ( isset( $delete_object[$ot->get_fully_qualified_pk_column()] ) )
@@ 1629-1630 (lines=2) @@
1626
							$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_fk_column()];
1627
1628
						//wait! it's entirely possible that we'll have a the primary key for this table in here if it's a foreign key for one of the other secondary tables
1629
						if ( isset( $delete_object[$ot->get_fully_qualified_pk_column()] ) )
1630
							$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()];
1631
1632
						//finally, it is possible that the fk for this table is found in the fully qualified pk column for the fk table, so let's see if that's there!
1633
						if ( isset( $delete_object[$ot->get_fully_qualified_pk_on_fk_table()]) )
@@ 1633-1634 (lines=2) @@
1630
							$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()];
1631
1632
						//finally, it is possible that the fk for this table is found in the fully qualified pk column for the fk table, so let's see if that's there!
1633
						if ( isset( $delete_object[$ot->get_fully_qualified_pk_on_fk_table()]) )
1634
							$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()];
1635
					}
1636
				}
1637
			}