Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1934-1935 (lines=2) @@
1931
1932
        if ( is_object( $this->pod ) )
1933
            $check = $this->pod->delete( $id );
1934
        else
1935
            $check = $this->pods_data->delete( $this->sql[ 'table' ], array( $this->sql[ 'field_id' ] => $id ) );
1936
1937
        if ( $check )
1938
            $this->message( sprintf( __( "<strong>Deleted:</strong> %s has been deleted.", 'pods' ), $this->item ) );
@@ 1970-1971 (lines=2) @@
1967
					}
1968
                    elseif ( is_object( $this->pod ) )
1969
                        $check = $this->pod->delete( $id );
1970
                    else
1971
                        $check = $this->pods_data->delete( $this->sql[ 'table' ], array( $this->sql[ 'field_id' ] => $id ) );
1972
1973
                    if ( $check )
1974
                        $success = true;