Code Duplication    Length = 9-9 lines in 2 locations

src/Form.php 2 locations

@@ 359-367 (lines=9) @@
356
            return $response;
357
        }
358
359
        DB::transaction(function () {
360
            $inserts = $this->prepareInsert($this->updates);
361
362
            $this->model->fill($inserts);
363
364
            $this->model->save();
365
366
            $this->updateRelation($this->relations);
367
        });
368
369
        if (($response = $this->callSaved()) instanceof Response) {
370
            return $response;
@@ 560-568 (lines=9) @@
557
            return $response;
558
        }
559
560
        DB::transaction(function () {
561
            $updates = $this->prepareUpdate($this->updates);
562
563
            $this->model->fill($updates);
564
565
            $this->model->save();
566
567
            $this->updateRelation($this->relations);
568
        });
569
570
        if (($result = $this->callSaved()) instanceof Response) {
571
            return $result;