Code Duplication    Length = 10-10 lines in 2 locations

src/GetTrait.php 2 locations

@@ 260-269 (lines=10) @@
257
     *
258
     * @return int
259
     */
260
    public function getTemplatePageCount($templateName)
261
    {
262
        StaticValidator::execute($templateName, 'TemplateName');
263
264
        $query = [
265
            'templateName' => $templateName,
266
        ];
267
268
        return (int) $this->get('/templates/pagecount', $query);
269
    }
270
271
    /**
272
     * Return true, if the template exists in template storage
@@ 280-289 (lines=10) @@
277
     *
278
     * @return bool
279
     */
280
    public function templateExists($templateName)
281
    {
282
        StaticValidator::execute($templateName, 'TemplateName');
283
284
        $query = [
285
            'templateName' => $templateName,
286
        ];
287
288
        return (bool) $this->get('/templates/exists', $query);
289
    }
290
291
    /**
292
     * Return an array of available fonts on the Reporting Cloud service