Code Duplication    Length = 10-10 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 240-249 (lines=10) @@
237
     *
238
     * @return integer
239
     */
240
    public function getTemplatePageCount($templateName)
241
    {
242
        StaticValidator::execute($templateName, 'TemplateName');
243
244
        $query = [
245
            'templateName' => $templateName,
246
        ];
247
248
        return (integer) $this->get('/templates/pagecount', $query);
249
    }
250
251
    /**
252
     * Return true, if the template exists in template storage
@@ 260-269 (lines=10) @@
257
     *
258
     * @return bool
259
     */
260
    public function templateExists($templateName)
261
    {
262
        StaticValidator::execute($templateName, 'TemplateName');
263
264
        $query = [
265
            'templateName' => $templateName,
266
        ];
267
268
        return (boolean) $this->get('/templates/exists', $query);
269
    }
270
271
    /**
272
     * Return an array of available fonts on the Reporting Cloud service