Code Duplication    Length = 12-12 lines in 2 locations

src/Http/Controllers/MasterPrestasiController.php 1 location

@@ 248-259 (lines=12) @@
245
     * @param  \App\Prestasi  $prestasi
246
     * @return \Illuminate\Http\Response
247
     */
248
    public function destroy($id)
249
    {
250
        $master_prestasi = $this->master_prestasi->findOrFail($id);
251
252
        if ($master_prestasi->delete()) {
253
            $response['status'] = true;
254
        } else {
255
            $response['status'] = false;
256
        }
257
258
        return json_encode($response);
259
    }
260
}
261

src/Http/Controllers/PrestasiController.php 1 location

@@ 241-252 (lines=12) @@
238
     * @param  \App\Prestasi  $prestasi
239
     * @return \Illuminate\Http\Response
240
     */
241
    public function destroy($id)
242
    {
243
        $prestasi = $this->prestasi->findOrFail($id);
244
245
        if ($prestasi->delete()) {
246
            $response['status'] = true;
247
        } else {
248
            $response['status'] = false;
249
        }
250
251
        return json_encode($response);
252
    }
253
}
254