Code Duplication    Length = 5-5 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 409-413 (lines=5) @@
406
            StaticValidator::execute($templateName, 'TemplateName');
407
        }
408
409
        if (null !== $templateFilename) {
410
            StaticValidator::execute($templateFilename, 'TemplateExtension');
411
            StaticValidator::execute($templateFilename, 'FileExists');
412
            $templateFilename = realpath($templateFilename);
413
        }
414
415
        // This boolean value MUST be passed as a string to prevent Guzzle converting the
416
        // query parameter to ?append=0 or ?append=1, which the backend does not recognize.
@@ 534-538 (lines=5) @@
531
            StaticValidator::execute($templateName, 'TemplateName');
532
        }
533
534
        if (null !== $templateFilename) {
535
            StaticValidator::execute($templateFilename, 'TemplateExtension');
536
            StaticValidator::execute($templateFilename, 'FileExists');
537
            $templateFilename = realpath($templateFilename);
538
        }
539
540
        StaticValidator::execute($mergeSettings, 'TypeArray');
541