Code Duplication    Length = 5-5 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 395-399 (lines=5) @@
392
            StaticValidator::execute($templateName, 'TemplateName');
393
        }
394
395
        if (null !== $templateFilename) {
396
            StaticValidator::execute($templateFilename, 'TemplateExtension');
397
            StaticValidator::execute($templateFilename, 'FileExists');
398
            $templateFilename = realpath($templateFilename);
399
        }
400
401
        // This boolean value MUST be passed as a string to prevent Guzzle converting the
402
        // query parameter to ?append=0 or ?append=1, which the backend does not recognize.
@@ 487-491 (lines=5) @@
484
            StaticValidator::execute($templateName, 'TemplateName');
485
        }
486
487
        if (null !== $templateFilename) {
488
            StaticValidator::execute($templateFilename, 'TemplateExtension');
489
            StaticValidator::execute($templateFilename, 'FileExists');
490
            $templateFilename = realpath($templateFilename);
491
        }
492
493
        StaticValidator::execute($mergeSettings, 'TypeArray');
494