Library/Compiler.php
public function processCodeInjection(array $entries, $section = 'request')
    {
        $codes = [];
        $includes = [];

        if (isset($entries[$section])) {
            foreach ($entries[$section] as $entry) {
                if (isset($entry['code']) && !empty($entry['code'])) {
                    $codes[] = $entry['code'].';';
                }
                if (isset($entry['include']) && !empty($entry['include'])) {
                    $includes[] = '#include "'.$entry['include'].'"';
                }
            }
        }

        return [implode(PHP_EOL, $includes), implode("\n\t", $codes)];
    }
public function processCodeInjection(array $entries, $section = 'request')
    {
        $codes = [];
        $includes = [];

        if (isset($entries[$section])) {
            foreach ($entries[$section] as $entry) {
                if (isset($entry['code']) && !empty($entry['code'])) {
                    $codes[] = $entry['code'].';';
                }
                if (isset($entry['include']) && !empty($entry['include'])) {
                    $includes[] = '#include "'.$entry['include'].'"';
                }
            }
        }

        return [implode(PHP_EOL, $includes), implode("\n\t", $codes)];
    }
public function processCodeInjection ( array $ entries , $ section = 'request' ) { $ codes = [ ] ; $ includes = [ ] ; if ( isset ( $ entries [ $ section ] ) ) { foreach ( $ entries [ $ section ] as $ entry ) { if ( isset ( $ entry [ 'code' ] ) && ! empty ( $ entry [ 'code' ] ) ) { $ codes [ ] = $ entry [ 'code' ] . ';' ; } if ( isset ( $ entry [ 'include' ] ) && ! empty ( $ entry [ 'include' ] ) ) { $ includes [ ] = '#include "' . $ entry [ 'include' ] . '"' ; } } } return [ implode ( PHP_EOL , $ includes ) , implode ( "\n\t" , $ codes ) ] ; }
Process extension code injection.

@param array  $entries
@param string $section

@return array
Process extension code injection .