original_string: protected function formatChannels(array $channels)
      {
          return array_map(function ($channel)
          {
              if ($channel instanceof Channel) {
                  return $channel->getName();
              }
  
              return $channel;
  
          }, $channels);
      }
code: protected function formatChannels(array $channels)
      {
          return array_map(function ($channel)
          {
              if ($channel instanceof Channel) {
                  return $channel->getName();
              }
  
              return $channel;
  
          }, $channels);
      }
code_tokens: protected function formatChannels ( array $ channels ) { return array_map ( function ( $ channel ) { if ( $ channel instanceof Channel ) { return $ channel -> getName ( ) ; } return $ channel ; } , $ channels ) ; }
docstring: Format the channel array into an array of strings.
  
  @param  array  $channels
  @return array
docstring_tokens: Format the channel array into an array of strings .