Code Duplication    Length = 12-12 lines in 2 locations

app/Http/Controllers/TagController.php 1 location

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

app/Http/Controllers/TaskController.php 1 location

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