Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

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