private function replaceTokens(array $originalTokens, array $replacements)
    {
        $tokens = [];
        foreach ($originalTokens as $key => $token) {
            if (! array_key_exists($key, $replacements)) {
                $tokens[] = $token;
                continue;
            }

            foreach ($replacements[$key] as $replacementToken) {
                $tokens[] = $replacementToken;
            }
        }
        return $tokens;
    }
private function replaceTokens(array $originalTokens, array $replacements)
    {
        $tokens = [];
        foreach ($originalTokens as $key => $token) {
            if (! array_key_exists($key, $replacements)) {
                $tokens[] = $token;
                continue;
            }

            foreach ($replacements[$key] as $replacementToken) {
                $tokens[] = $replacementToken;
            }
        }
        return $tokens;
    }
private function replaceTokens ( array $ originalTokens , array $ replacements ) { $ tokens = [ ] ; foreach ( $ originalTokens as $ key => $ token ) { if ( ! array_key_exists ( $ key , $ replacements ) ) { $ tokens [ ] = $ token ; continue ; } foreach ( $ replacements [ $ key ] as $ replacementToken ) { $ tokens [ ] = $ replacementToken ; } } return $ tokens ; }
Inject replacements from template inheritance

@param  array $originalTokens
@param  array $replacements
@return array
Inject replacements from template inheritance