Code Duplication    Length = 12-12 lines in 2 locations

app/Http/Controllers/TagController.php 1 location

@@ 71-82 (lines=12) @@
68
     * @param  int $id
69
     * @return \Illuminate\Http\Response
70
     */
71
    public function show($id)
72
    {
73
        $tag = Tag::find($id);
74
75
        if (!$tag) {
76
            return $this->respondNotFound('Tag does not exsist');
77
        }
78
79
        return $this->respond([
80
            'data' => $this->tagTransformer->transform($tag)
81
        ]);
82
    }
83
84
    /**
85
     * Show the form for editing the specified resource.

app/Http/Controllers/TaskController.php 1 location

@@ 68-79 (lines=12) @@
65
     * @param  int $id
66
     * @return \Illuminate\Http\Response
67
     */
68
    public function show($id)
69
    {
70
        $task = Task::find($id);
71
72
        if (!$task) {
73
            return $this->respondNotFound('Task does not exsist');
74
        }
75
76
        return $this->respond([
77
            'data' => $this->taskTransformer->transform($task)
78
        ]);
79
    }
80
81
    /**
82
     * Show the form for editing the specified resource.