Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

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