Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 2189-2190 (lines=2) @@
2186
2187
		if ( is_object( $this->pod ) ) {
2188
			$check = $this->pod->delete( $id );
2189
		} else {
2190
			$check = $this->pods_data->delete( $this->sql['table'], array( $this->sql['field_id'] => $id ) );
2191
		}
2192
2193
		if ( $check ) {
@@ 2228-2229 (lines=2) @@
2225
						$check = $callback;
2226
					} elseif ( is_object( $this->pod ) ) {
2227
						$check = $this->pod->delete( $id );
2228
					} else {
2229
						$check = $this->pods_data->delete( $this->sql['table'], array( $this->sql['field_id'] => $id ) );
2230
					}
2231
2232
					if ( $check ) {