MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/artinside/public_html/finance/vendor/league/plates/src/Extension/Data/data.php
<?php

namespace League\Plates\Extension\Data;

use League\Plates\Template;

function addGlobalsCompose(array $globals) {
    return function(Template $template) use ($globals) {
        return $template->withData(array_merge($globals, $template->data));
    };
}

function mergeParentDataCompose() {
    return function(Template $template) {
        return $template->parent
            ? $template->withData(array_merge($template->parent()->data, $template->data))
            : $template;
    };
}

function perTemplateDataCompose(array $template_data_map) {
    return function(Template $template) use ($template_data_map) {
        $name = $template->get('normalized_name', $template->name);

        return isset($template_data_map[$name])
            ? $template->withData(array_merge($template_data_map[$name], $template->data))
            : $template;
    };
}