src/Control/Email/Email.php
protected static function mergeConfiguredEmails($config, $env)
    {
        // Normalise config list
        $normalised = [];
        $source = (array)static::config()->get($config);
        foreach ($source as $address => $name) {
            if ($address && !is_numeric($address)) {
                $normalised[$address] = $name;
            } elseif ($name) {
                $normalised[$name] = null;
            }
        }
        $extra = Environment::getEnv($env);
        if ($extra) {
            $normalised[$extra] = null;
        }
        return $normalised;
    }
protected static function mergeConfiguredEmails($config, $env)
    {
        // Normalise config list
        $normalised = [];
        $source = (array)static::config()->get($config);
        foreach ($source as $address => $name) {
            if ($address && !is_numeric($address)) {
                $normalised[$address] = $name;
            } elseif ($name) {
                $normalised[$name] = null;
            }
        }
        $extra = Environment::getEnv($env);
        if ($extra) {
            $normalised[$extra] = null;
        }
        return $normalised;
    }
protected static function mergeConfiguredEmails ( $ config , $ env ) { // Normalise config list $ normalised = [ ] ; $ source = ( array ) static :: config ( ) -> get ( $ config ) ; foreach ( $ source as $ address => $ name ) { if ( $ address && ! is_numeric ( $ address ) ) { $ normalised [ $ address ] = $ name ; } elseif ( $ name ) { $ normalised [ $ name ] = null ; } } $ extra = Environment :: getEnv ( $ env ) ; if ( $ extra ) { $ normalised [ $ extra ] = null ; } return $ normalised ; }
Normalise email list from config merged with env vars

@param string $config Config key
@param string $env Env variable key
@return array Array of email addresses
Normalise email list from config merged with env vars