Code Duplication    Length = 10-10 lines in 2 locations

src/GetTrait.php 2 locations

@@ 266-275 (lines=10) @@
263
     *
264
     * @return int
265
     */
266
    public function getTemplatePageCount($templateName)
267
    {
268
        StaticValidator::execute($templateName, 'TemplateName');
269
270
        $query = [
271
            'templateName' => $templateName,
272
        ];
273
274
        return (int) $this->get('/templates/pagecount', $query);
275
    }
276
277
    /**
278
     * Return true, if the template exists in template storage
@@ 286-295 (lines=10) @@
283
     *
284
     * @return bool
285
     */
286
    public function templateExists($templateName)
287
    {
288
        StaticValidator::execute($templateName, 'TemplateName');
289
290
        $query = [
291
            'templateName' => $templateName,
292
        ];
293
294
        return (bool) $this->get('/templates/exists', $query);
295
    }
296
297
    /**
298
     * Return an array of available fonts on the Reporting Cloud service