Code Duplication    Length = 5-5 lines in 2 locations

src/ReportingCloud.php 2 locations

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