Code Duplication    Length = 14-14 lines in 3 locations

src/Controller/Frontend/WebhookController.php 3 locations

@@ 31-44 (lines=14) @@
28
        return $this->serviceLocator;
29
    }
30
31
    public function indexAction()
32
    {
33
34
        $mode = $this->params()->fromQuery('hub_mode');
35
        $challenge = $this->params()->fromQuery('hub_challenge');
36
        $token = $this->params()->fromQuery('hub_verify_token');
37
38
        $response = $this->getResponse();
39
        $response->setContent($challenge);
40
41
        file_get_contents('php://input');
42
43
        return $response;
44
    }
45
46
    /**
47
     * FB hooks : hub.mode=subscribe&
@@ 51-64 (lines=14) @@
48
     * hub.challenge=1158201444&
49
     * hub.verify_token=meatyhamhock
50
     */
51
    public function facebookAction()
52
    {
53
54
        $mode = $this->params()->fromQuery('hub_mode');
55
        $challenge = $this->params()->fromQuery('hub_challenge');
56
        $token = $this->params()->fromQuery('hub_verify_token');
57
58
        $response = $this->getResponse();
59
        $response->setContent($challenge);
60
61
        file_get_contents('php://input');
62
63
        return $response;
64
    }
65
66
    public function instagramAction()
67
    {
@@ 66-79 (lines=14) @@
63
        return $response;
64
    }
65
66
    public function instagramAction()
67
    {
68
69
        $mode = $this->params()->fromQuery('hub_mode');
70
        $challenge = $this->params()->fromQuery('hub_challenge');
71
        $token = $this->params()->fromQuery('hub_verify_token');
72
73
        $response = $this->getResponse();
74
        $response->setContent($challenge);
75
76
        file_get_contents('php://input');
77
78
        return $response;
79
    }
80
81
    public function getGameService()
82
    {