Code Duplication    Length = 3-3 lines in 2 locations

src/Http/Controllers/MasterTarifController.php 2 locations

@@ 101-103 (lines=3) @@
98
            'status'                => 'required',
99
        ]);
100
101
        if($request->status > 1 && $request->status < 0){
102
            return redirect()->back()->withErrors('Error : status salah');
103
        }
104
105
        MasterTarifModel::create([
106
            'uuid'                  => Uuid::uuid5(Uuid::NAMESPACE_DNS, 'bantenprov.go.id'.date('YmdHis')),
@@ 154-156 (lines=3) @@
151
            return redirect()->back()->withErrors('Error : retribusi yang dipilih tidak ditemukan');
152
        }
153
154
        if($request->status > 1 && $request->status < 0){
155
            return redirect()->back()->withErrors('Error : status salah');
156
        }
157
158
        MasterTarifModel::find($id)->update([            
159
            'nama'                  => $request->nama,