Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 4859-4860 (lines=2) @@
4856
        $params = (object) $params;
4857
        $object = $this->load_object( $params );
4858
4859
        if ( empty( $object ) )
4860
            return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
4861
4862
        $success = wp_delete_post( $params->id );
4863
@@ 4864-4865 (lines=2) @@
4861
4862
        $success = wp_delete_post( $params->id );
4863
4864
        if ( !$success )
4865
            return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
4866
4867
        pods_transient_clear( 'pods_objects_' . $params->type );
4868