Code Duplication    Length = 11-11 lines in 3 locations

src/Connectors/FacebookPage.php 3 locations

@@ 135-145 (lines=11) @@
132
    }
133
134
135
    public function getTabs($page_id, $page_access_token, $app_id)
136
    {
137
        $path = '/'.$page_id.'/tabs';
138
        $path .= '?access_token='.$page_access_token;
139
        $method = 'GET';
140
141
        $response = $this->request($path, $method);
142
        $response = json_decode($response);
143
144
        return $response;
145
    }
146
147
148
    public function getTab($page_id, $page_access_token, $app_id)
@@ 148-158 (lines=11) @@
145
    }
146
147
148
    public function getTab($page_id, $page_access_token, $app_id)
149
    {
150
        $path = '/'.$page_id.'/tabs/app_'.$app_id;
151
        $path .= '?access_token='.$page_access_token;
152
        $method = 'GET';
153
154
        $response = $this->request($path, $method);
155
        $response = json_decode($response);
156
157
        return $response;
158
    }
159
160
161
    public function updateTab($page_id, $page_access_token, $app_id, array $params)
@@ 161-171 (lines=11) @@
158
    }
159
160
161
    public function updateTab($page_id, $page_access_token, $app_id, array $params)
162
    {
163
        $path = '/'.$page_id.'/tabs/app_'.$app_id;
164
        $method = 'POST';
165
        $params['access_token'] = $page_access_token;
166
167
        $response = $this->request($path, $method, $params);
168
        $response = json_decode($response);
169
170
        return $response;
171
    }
172
173
174
    public function removeTab($page_id, $page_access_token, $app_id)