Code Duplication    Length = 2-2 lines in 3 locations

core/db_models/EEM_Base.model.php 3 locations

@@ 1799-1800 (lines=2) @@
1796
				if ( ! empty( $other_tables ) ) {
1797
					foreach ( $other_tables as $ot ) {
1798
						//first check if we've got the foreign key column here.
1799
						if ( isset( $delete_object[ $ot->get_fully_qualified_fk_column() ] ) ) {
1800
							$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_fk_column() ];
1801
						}
1802
						// wait! it's entirely possible that we'll have a the primary key
1803
						// for this table in here, if it's a foreign key for one of the other secondary tables
@@ 1804-1805 (lines=2) @@
1801
						}
1802
						// wait! it's entirely possible that we'll have a the primary key
1803
						// for this table in here, if it's a foreign key for one of the other secondary tables
1804
						if ( isset( $delete_object[ $ot->get_fully_qualified_pk_column() ] ) ) {
1805
							$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ];
1806
						}
1807
						// finally, it is possible that the fk for this table is found
1808
						// in the fully qualified pk column for the fk table, so let's see if that's there!
@@ 1809-1810 (lines=2) @@
1806
						}
1807
						// finally, it is possible that the fk for this table is found
1808
						// in the fully qualified pk column for the fk table, so let's see if that's there!
1809
						if ( isset( $delete_object[ $ot->get_fully_qualified_pk_on_fk_table() ] ) ) {
1810
							$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ];
1811
						}
1812
					}
1813
				}