Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wpinv-item.php 2 locations

@@ 118-120 (lines=3) @@
115
        }
116
        
117
        // Set custom id if not set.
118
        if ( empty( $data['meta']['custom_id'] ) && !$this->get_custom_id() ) {
119
            $this->save_metas( array( 'custom_id' => $id ) );
120
        }
121
122
        do_action( 'wpinv_item_create', $id, $args );
123
@@ 152-154 (lines=3) @@
149
        }
150
        
151
        // Set custom id if not set.
152
        if ( empty( $data['meta']['custom_id'] ) && !$this->get_custom_id() ) {
153
            $this->save_metas( array( 'custom_id' => $id ) );
154
        }
155
156
        do_action( 'wpinv_item_update', $id, $data );
157