Code Duplication    Length = 8-12 lines in 2 locations

src/WufooForm.php 2 locations

@@ 131-142 (lines=12) @@
128
     *
129
     * @return int
130
     */
131
    public function getCommentCount()
132
    {
133
        $url = $this->buildUrl('https://{subdomain}.wufoo.com/api/v3/forms/{identifier}/comments/count.json');
134
135
        $result = self::$client
136
            ->get($url)
137
            ->getBody();
138
139
        $json = json_decode($result, true);
140
141
        return $json['Count'];
142
    }
143
144
    /**
145
     * Get the entries belonging to this form.
@@ 183-190 (lines=8) @@
180
     *
181
     * @return int
182
     */
183
    public function getEntriesCount()
184
    {
185
        $url = $this->buildUrl('https://{subdomain}.wufoo.com/api/v3/forms/{identifier}/entries/count.json');
186
        $result = self::$client->get($url)->getBody();
187
        $json = json_decode($result, true);
188
189
        return $json['EntryCount'];
190
    }
191
192
    /**
193
     * Submit an entry to this Wufoo form.