Code Duplication    Length = 7-9 lines in 3 locations

app/Http/Controllers/FileLinks/FileLinksController.php 1 location

@@ 246-252 (lines=7) @@
243
    }
244
245
    //  Ajax call te get JSON details of the link
246
    public function show($id)
247
    {
248
        $linkData = new FileLinksResource(FileLinks::find($id));
249
250
        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
251
        return $linkData;
252
    }
253
254
    //  Update the link's details
255
    public function update(Request $request, $id)

app/Http/Controllers/Installer/CategoriesController.php 2 locations

@@ 20-28 (lines=9) @@
17
        $this->middleware('auth');
18
    }
19
    //  View the list of categories
20
    public function index()
21
    {
22
        $categories = SystemCategories::all();
23
        
24
        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
25
        return view('installer.categoryList', [
26
            'cats' => $categories
27
        ]);
28
    }
29
30
    //  New category form
31
    public function create()
@@ 56-62 (lines=7) @@
53
    }
54
55
    //  Get a JSON list of the categories
56
    public function show($id)
57
    {
58
        $categories = SystemCategories::all();
59
        
60
        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
61
        return response()->json($categories);
62
    }
63
64
    //  Brind up the Edit Category Form
65
    public function edit($id)