Code Duplication    Length = 11-11 lines in 2 locations

src/Http/Controllers/SiswaController.php 2 locations

@@ 105-115 (lines=11) @@
102
     *
103
     * @return \Illuminate\Http\Response
104
     */
105
    public function get()
106
    {
107
        $siswas = $this->siswa->with(['province', 'city', 'district', 'village', 'sekolah', 'prodi_sekolah', 'user', 'kegiatan'])->get();
108
109
        $response['siswas']     = $siswas;
110
        $response['error']      = false;
111
        $response['message']    = 'Success';
112
        $response['status']     = true;
113
114
        return response()->json($response);
115
    }
116
117
    /**
118
     * Show the form for creating a new resource.
@@ 258-268 (lines=11) @@
255
     * @param  \App\Siswa  $siswa
256
     * @return \Illuminate\Http\Response
257
     */
258
    public function show($id)
259
    {
260
        $siswa = $this->siswa->with(['province', 'city', 'district', 'village', 'sekolah', 'prodi_sekolah', 'user', 'kegiatan'])->findOrFail($id);
261
262
        $response['siswa']      = $siswa;
263
        $response['error']      = false;
264
        $response['message']    = 'Success';
265
        $response['status']     = true;
266
267
        return response()->json($response);
268
    }
269
270
    /**
271
     * Show the form for editing the specified resource.