Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 4999-5000 (lines=2) @@
4996
        $params = (object) $params;
4997
        $object = $this->load_object( $params );
4998
4999
        if ( empty( $object ) )
5000
            return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
5001
5002
        $success = wp_delete_post( $params->id );
5003
@@ 5004-5005 (lines=2) @@
5001
5002
        $success = wp_delete_post( $params->id );
5003
5004
        if ( !$success )
5005
            return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
5006
5007
        pods_transient_clear( 'pods_objects_' . $params->type );
5008