Code Duplication    Length = 10-10 lines in 2 locations

app/Containers/Tracker/UI/API/Controllers/Controller.php 2 locations

@@ 25-34 (lines=10) @@
22
     *
23
     * @return  \Dingo\Api\Http\Response
24
     */
25
    public function trackOpen(Request $request, TrackOpenAction $action)
26
    {
27
        $visitorId = $request->header('visitor-id');
28
29
        $action->run($visitorId);
30
31
        return $this->response->accepted(null, [
32
            'message' => 'Session (open) Tracked Successfully.',
33
        ]);
34
    }
35
36
37
    /**
@@ 43-52 (lines=10) @@
40
     *
41
     * @return  \Dingo\Api\Http\Response
42
     */
43
    public function trackClose(Request $request, TrackCloseAction $action)
44
    {
45
        $visitorId = $request->header('visitor-id');
46
47
        $action->run($visitorId);
48
49
        return $this->response->accepted(null, [
50
            'message' => 'Session (close) Tracked Successfully.',
51
        ]);
52
    }
53
54
}
55