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