Code Duplication    Length = 10-10 lines in 2 locations

src/ReportingCloud.php 2 locations

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