Code Duplication    Length = 11-11 lines in 2 locations

src/Http/Controllers/MasterSktmController.php 1 location

@@ 185-195 (lines=11) @@
182
     * @param  \App\MasterSktm  $master_sktm
183
     * @return \Illuminate\Http\Response
184
     */
185
    public function show($id)
186
    {
187
        $master_sktm = $this->master_sktm->with(['user'])->findOrFail($id);
188
189
        $response['master_sktm']    = $master_sktm;
190
        $response['error']          = false;
191
        $response['message']        = 'Success';
192
        $response['status']         = true;
193
194
        return response()->json($response);
195
    }
196
197
    /**
198
     * Show the form for editing the specified resource.

src/Http/Controllers/SktmController.php 1 location

@@ 232-242 (lines=11) @@
229
     * @param  \App\Sktm  $nilai
230
     * @return \Illuminate\Http\Response
231
     */
232
    public function show($id)
233
    {
234
        $sktm = $this->sktm->with(['siswa', 'master_sktm', 'user'])->findOrFail($id);
235
236
        $response['sktm']   = $sktm;
237
        $response['error']      = false;
238
        $response['message']    = 'Success';
239
        $response['status']     = true;
240
241
        return response()->json($response);
242
    }
243
244
    /**
245
     * Show the form for editing the specified resource.