Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 4865-4866 (lines=2) @@
4862
        $params = (object) $params;
4863
        $object = $this->load_object( $params );
4864
4865
        if ( empty( $object ) )
4866
            return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
4867
4868
        $success = wp_delete_post( $params->id );
4869
@@ 4870-4871 (lines=2) @@
4867
4868
        $success = wp_delete_post( $params->id );
4869
4870
        if ( !$success )
4871
            return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
4872
4873
        pods_transient_clear( 'pods_objects_' . $params->type );
4874