protected function formatChannels(array $channels)
    {
        return array_map(function ($channel)
        {
            if ($channel instanceof Channel) {
                return $channel->getName();
            }

            return $channel;

        }, $channels);
    }
protected function formatChannels(array $channels)
    {
        return array_map(function ($channel)
        {
            if ($channel instanceof Channel) {
                return $channel->getName();
            }

            return $channel;

        }, $channels);
    }
protected function formatChannels ( array $ channels ) { return array_map ( function ( $ channel ) { if ( $ channel instanceof Channel ) { return $ channel -> getName ( ) ; } return $ channel ; } , $ channels ) ; }
Format the channel array into an array of strings.

@param  array  $channels
@return array
Format the channel array into an array of strings .