Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 28, 2020
1 parent d5c1268 commit e113e14
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,6 @@ public function broadcast(array $channels, $event, array $payload = [])
);
}

/**
* @param array $channels
* @return array
*/
protected function formatChannels(array $channels)
{
return array_map(function ($channel) {
return $this->prefix.$channel;
}, parent::formatChannels($channels));
}

/**
* Get the Lua script for broadcasting to multiple channels.
*
Expand All @@ -146,4 +135,17 @@ protected function broadcastMultipleChannelsScript()
end
LUA;
}

/**
* Format the channel array into an array of strings.
*
* @param array $channels
* @return array
*/
protected function formatChannels(array $channels)
{
return array_map(function ($channel) {
return $this->prefix.$channel;
}, parent::formatChannels($channels));
}
}

0 comments on commit e113e14

Please sign in to comment.