Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 4775-4776 (lines=2) @@
4772
        $params = (object) $params;
4773
        $object = $this->load_object( $params );
4774
4775
        if ( empty( $object ) )
4776
            return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
4777
4778
        $success = wp_delete_post( $params->id );
4779
@@ 4780-4781 (lines=2) @@
4777
4778
        $success = wp_delete_post( $params->id );
4779
4780
        if ( !$success )
4781
            return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
4782
4783
        pods_transient_clear( 'pods_objects_' . $params->type );
4784