Code Duplication    Length = 14-14 lines in 2 locations

Provider/FacebookProvider.php 1 location

@@ 39-52 (lines=14) @@
36
     *
37
     * @return mixed|\Psr\Http\Message\ResponseInterface
38
     */
39
    public function getAccessToken($code)
40
    {
41
        $parameters = [
42
            'code' => $code,
43
            'grant_type' => 'authorization_code',
44
            'client_id' => $this->credentials['client_id'],
45
            'client_secret' => $this->credentials['client_secret'],
46
            'redirect_uri' => $this->credentials['redirect_uri'],
47
        ];
48
49
        $response = $this->doRequest($this->normalizeUrl(self::ACCESS_TOKEN_URL, $parameters), self::GET, $parameters);
50
51
        return $response;
52
    }
53
54
    /**
55
     * @param $code

Provider/VkProvider.php 1 location

@@ 41-54 (lines=14) @@
38
     *
39
     * @return mixed|\Psr\Http\Message\ResponseInterface
40
     */
41
    public function getAccessToken($code)
42
    {
43
        $parameters = [
44
            'code' => $code,
45
            'grant_type' => 'authorization_code',
46
            'client_id' => $this->credentials['client_id'],
47
            'client_secret' => $this->credentials['client_secret'],
48
            'redirect_uri' => $this->credentials['redirect_uri'],
49
        ];
50
51
        $response = $this->doRequest($this->normalizeUrl(self::ACCESS_TOKEN_URL, $parameters), self::GET, $parameters);
52
53
        return $response;
54
    }
55
56
    /**
57
     * @param $code