Code Duplication    Length = 8-12 lines in 2 locations

src/Connectors/FacebookGroup.php 1 location

@@ 109-120 (lines=12) @@
106
     *
107
     **************************************************************************/
108
109
    protected function getMembersCount()
110
    {
111
        $group = $this->getGroup();
112
113
        $path = '/'.$group->id.'/members';
114
        $result = $this->request($path);
115
116
        $response = json_decode($result);
117
        $response = count($response->data);
118
119
        return $response;
120
    }
121
122
}
123

src/Connectors/Twitter.php 1 location

@@ 162-169 (lines=8) @@
159
        return null;
160
    }
161
162
    public function getStats()
163
    {
164
        $path = '/followers/ids.json?user_id='.$this->id;
165
        $response = $this->request($path);
166
        $response = json_decode($response);
167
        $response = count($response->ids);
168
        return $response;
169
    }
170
}
171