Code Duplication    Length = 4-4 lines in 2 locations

src/Http/Api/IssueController.php 2 locations

@@ 2532-2535 (lines=4) @@
2529
        $max_no = DB::collection($table)->count() + 1;
2530
        $insValues['no'] = $max_no;
2531
2532
        if (!isset($insValues['assignee']) || !$insValues['assignee']) {
2533
            $insValues['assignee'] = [ 'id' => $this->user->id, 'name' => $this->user->first_name, 'email' => $this->user->email ];
2534
        }
2535
2536
        // get reporter(creator)
2537
        if (!isset($insValues['reporter']) || !$insValues['reporter']) {
2538
            $insValues['reporter'] = [ 'id' => $this->user->id, 'name' => $this->user->first_name, 'email' => $this->user->email ];
@@ 2537-2540 (lines=4) @@
2534
        }
2535
2536
        // get reporter(creator)
2537
        if (!isset($insValues['reporter']) || !$insValues['reporter']) {
2538
            $insValues['reporter'] = [ 'id' => $this->user->id, 'name' => $this->user->first_name, 'email' => $this->user->email ];
2539
        }
2540
        if (!isset($insValues['created_at']) || !$insValues['created_at']) {
2541
            $insValues['created_at'] = time();
2542
        }
2543