Code Duplication    Length = 2-2 lines in 3 locations

core/db_models/EEM_Base.model.php 3 locations

@@ 1784-1785 (lines=2) @@
1781
				if ( ! empty( $other_tables ) ) {
1782
					foreach ( $other_tables as $ot ) {
1783
						//first check if we've got the foreign key column here.
1784
						if ( isset( $delete_object[ $ot->get_fully_qualified_fk_column() ] ) ) {
1785
							$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_fk_column() ];
1786
						}
1787
						// wait! it's entirely possible that we'll have a the primary key
1788
						// for this table in here, if it's a foreign key for one of the other secondary tables
@@ 1789-1790 (lines=2) @@
1786
						}
1787
						// wait! it's entirely possible that we'll have a the primary key
1788
						// for this table in here, if it's a foreign key for one of the other secondary tables
1789
						if ( isset( $delete_object[ $ot->get_fully_qualified_pk_column() ] ) ) {
1790
							$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ];
1791
						}
1792
						// finally, it is possible that the fk for this table is found
1793
						// in the fully qualified pk column for the fk table, so let's see if that's there!
@@ 1794-1795 (lines=2) @@
1791
						}
1792
						// finally, it is possible that the fk for this table is found
1793
						// in the fully qualified pk column for the fk table, so let's see if that's there!
1794
						if ( isset( $delete_object[ $ot->get_fully_qualified_pk_on_fk_table() ] ) ) {
1795
							$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ];
1796
						}
1797
					}
1798
				}