Code Duplication    Length = 11-11 lines in 3 locations

app/Http/Controllers/Admin/helpdesk/SettingsController.php 2 locations

@@ 612-622 (lines=11) @@
609
     *
610
     * @return Response
611
     */
612
    public function getStatuses()
613
    {
614
        try {
615
            /* fetch the values of company from company table */
616
            $statuss = \DB::table('ticket_status')->get();
617
            /* Direct to Company Settings Page */
618
            return view('themes.default1.admin.helpdesk.settings.status', compact('statuss'));
619
        } catch (Exception $e) {
620
            return redirect()->back()->with('fails', $e->getMessage());
621
        }
622
    }
623
624
    /**
625
     * @param int $id
@@ 632-642 (lines=11) @@
629
     *
630
     * @return Response
631
     */
632
    public function getEditStatuses($id)
633
    {
634
        try {
635
            /* fetch the values of company from company table */
636
            $status = \DB::table('ticket_status')->where('id', '=', $id)->first();
637
            /* Direct to Company Settings Page */
638
            return view('themes.default1.admin.helpdesk.settings.status-edit', compact('status'));
639
        } catch (Exception $e) {
640
            return redirect()->back()->with('fails', $e->getMessage());
641
        }
642
    }
643
644
    /**
645
     * @param int $id

app/Http/Controllers/Admin/helpdesk/SettingsController2.php 1 location

@@ 106-116 (lines=11) @@
103
     *
104
     * @return Response
105
     */
106
    public function getStatuses()
107
    {
108
        try {
109
            /* fetch the values of company from company table */
110
            $statuss = \DB::table('ticket_status')->get();
111
            /* Direct to Company Settings Page */
112
            return view('themes.default1.admin.helpdesk.settings.status', compact('statuss'));
113
        } catch (Exception $e) {
114
            return redirect()->back()->with('fails', $e->errorInfo[2]);
115
        }
116
    }
117
118
    /**
119
     * @param int $id