Code Duplication    Length = 5-5 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 405-409 (lines=5) @@
402
            StaticValidator::execute($templateName, 'TemplateName');
403
        }
404
405
        if (null !== $templateFilename) {
406
            StaticValidator::execute($templateFilename, 'TemplateExtension');
407
            StaticValidator::execute($templateFilename, 'FileExists');
408
            $templateFilename = realpath($templateFilename);
409
        }
410
411
        // This boolean value MUST be passed as a string to prevent Guzzle converting the
412
        // query parameter to ?append=0 or ?append=1, which the backend does not recognize.
@@ 503-507 (lines=5) @@
500
            StaticValidator::execute($templateName, 'TemplateName');
501
        }
502
503
        if (null !== $templateFilename) {
504
            StaticValidator::execute($templateFilename, 'TemplateExtension');
505
            StaticValidator::execute($templateFilename, 'FileExists');
506
            $templateFilename = realpath($templateFilename);
507
        }
508
509
        StaticValidator::execute($mergeSettings, 'TypeArray');
510