Code Duplication    Length = 5-5 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 394-398 (lines=5) @@
391
            StaticValidator::execute($templateName, 'TemplateName');
392
        }
393
394
        if (null !== $templateFilename) {
395
            StaticValidator::execute($templateFilename, 'TemplateExtension');
396
            StaticValidator::execute($templateFilename, 'FileExists');
397
            $templateFilename = realpath($templateFilename);
398
        }
399
400
        if (null !== $append) {
401
            $append = StaticFilter::execute($append, 'BooleanToString');
@@ 471-475 (lines=5) @@
468
            StaticValidator::execute($templateName, 'TemplateName');
469
        }
470
471
        if (null !== $templateFilename) {
472
            StaticValidator::execute($templateFilename, 'TemplateExtension');
473
            StaticValidator::execute($templateFilename, 'FileExists');
474
            $templateFilename = realpath($templateFilename);
475
        }
476
477
        StaticValidator::execute($mergeSettings, 'TypeArray');
478