Code Duplication    Length = 7-9 lines in 3 locations

app/Http/Controllers/Admin/AdminController.php 1 location

@@ 70-78 (lines=9) @@
67
    }
68
69
    //  Get the form to change the user password policy
70
    public function passwordPolicy()
71
    {
72
        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
73
        $this->authorize('hasAccess', 'Manage Users');
74
75
        return view('admin.userSecurity', [
76
            'passExpire' => config('auth.passwords.settings.expire'),
77
        ]);
78
    }
79
80
    //  Submit the form to change the user password policy
81
    public function submitPolicy(Request $request)

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

@@ 25-31 (lines=7) @@
22
    }
23
24
    //  New Customer Form
25
    public function create()
26
    {
27
        $this->authorize('hasAccess', 'Add Customer');
28
29
        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
30
        return view('customer.newCustomer');
31
    }
32
33
    //  Submit the new customer form
34
    public function store(Request $request)

app/Http/Controllers/DashboardController.php 1 location

@@ 104-111 (lines=8) @@
101
    }
102
103
    //  About page
104
    public function about()
105
    {
106
        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
107
108
        return view('about', [
109
            'branch' => 'latest'
110
        ]);
111
    }
112
}
113