original_string: public function normalizeChannelName($channel)
      {
          if ($this->isGuardedChannel($channel)) {
              return Str::startsWith($channel, 'private-')
                  ? Str::replaceFirst('private-', '', $channel)
                  : Str::replaceFirst('presence-', '', $channel);
          }
  
          return $channel;
      }
code: public function normalizeChannelName($channel)
      {
          if ($this->isGuardedChannel($channel)) {
              return Str::startsWith($channel, 'private-')
                  ? Str::replaceFirst('private-', '', $channel)
                  : Str::replaceFirst('presence-', '', $channel);
          }
  
          return $channel;
      }
code_tokens: public function normalizeChannelName ( $ channel ) { if ( $ this -> isGuardedChannel ( $ channel ) ) { return Str :: startsWith ( $ channel , 'private-' ) ? Str :: replaceFirst ( 'private-' , '' , $ channel ) : Str :: replaceFirst ( 'presence-' , '' , $ channel ) ; } return $ channel ; }
docstring: Remove prefix from channel name.
  
  @param  string  $channel
  @return string
docstring_tokens: Remove prefix from channel name .