Code Duplication    Length = 5-5 lines in 2 locations

src/Http/Controllers/ProgramKeahlianController.php 2 locations

@@ 188-192 (lines=5) @@
185
            $program_keahlian->label        = $request->input('label');
186
            $program_keahlian->keterangan   = $request->input('keterangan');
187
188
            if (Auth::User()->hasRole(['superadministrator'])) {
189
                $program_keahlian->user_id  = $request->input('user_id');
190
            } else {
191
                $program_keahlian->user_id  = $this->user_id;
192
            }
193
194
            $program_keahlian->save();
195
@@ 305-309 (lines=5) @@
302
            $program_keahlian->label        = $request->input('label');
303
            $program_keahlian->keterangan   = $request->input('keterangan');
304
305
            if (Auth::User()->hasRole(['superadministrator'])) {
306
                $program_keahlian->user_id  = $request->input('user_id');
307
            } else {
308
                $program_keahlian->user_id  = $this->user_id;
309
            }
310
311
            if (Auth::User()->hasRole(['superadministrator']) || $program_keahlian->user_id == $this->user_id) {
312
                $program_keahlian->save();