Code Duplication    Length = 5-5 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 378-382 (lines=5) @@
375
            StaticValidator::execute($templateName, 'TemplateName');
376
        }
377
378
        if (null !== $templateFilename) {
379
            StaticValidator::execute($templateFilename, 'TemplateExtension');
380
            StaticValidator::execute($templateFilename, 'FileExists');
381
            $templateFilename = realpath($templateFilename);
382
        }
383
384
        if (null !== $append) {
385
            $append = StaticFilter::execute($append, 'BooleanToString');
@@ 455-459 (lines=5) @@
452
            StaticValidator::execute($templateName, 'TemplateName');
453
        }
454
455
        if (null !== $templateFilename) {
456
            StaticValidator::execute($templateFilename, 'TemplateExtension');
457
            StaticValidator::execute($templateFilename, 'FileExists');
458
            $templateFilename = realpath($templateFilename);
459
        }
460
461
        StaticValidator::execute($mergeSettings, 'TypeArray');
462