Code Duplication    Length = 10-10 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 158-167 (lines=10) @@
155
     *
156
     * @return bool
157
     */
158
    public function getTemplatePageCount($templateName)
159
    {
160
        StaticValidator::execute($templateName, 'TemplateName');
161
162
        $query = [
163
            'templateName' => $templateName,
164
        ];
165
166
        return (integer) $this->get('/templates/pagecount', $query);
167
    }
168
169
    /**
170
     * Return true, if the template exists in template storage
@@ 178-187 (lines=10) @@
175
     *
176
     * @return bool
177
     */
178
    public function templateExists($templateName)
179
    {
180
        StaticValidator::execute($templateName, 'TemplateName');
181
182
        $query = [
183
            'templateName' => $templateName,
184
        ];
185
186
        return (boolean) $this->get('/templates/exists', $query);
187
    }
188
189
    /**
190
     * Return an array properties for the ReportingCloud account