Code Duplication    Length = 8-10 lines in 2 locations

app/Http/Controllers/Customers/CustomerNotesController.php 1 location

@@ 46-53 (lines=8) @@
43
    }
44
45
    //  Get the customer notes
46
    public function show($id)
47
    {
48
        $notes = CustomerNotes::where('cust_id', $id)->orderBy('urgent', 'desc')->get();
49
        
50
        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
51
        Log::debug('Fetched Data - ', $notes->toArray());
52
        return response()->json($notes);
53
    }
54
55
    //  Update a customer note
56
    public function update(Request $request, $id)

app/Http/Controllers/Installer/SystemsController.php 1 location

@@ 24-33 (lines=10) @@
21
    }
22
    
23
    //  List the systems that can be modified
24
    public function index()
25
    {
26
        $systems = SystemCategories::with('SystemTypes')->get();
27
        
28
        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
29
        Log::debug('Fetched Data - ', $systems->toArray());
30
        return view('installer.systemsList', [
31
            'systems' => $systems
32
        ]);
33
    }
34
35
    //  Open the form to create a new system
36
    public function create()