diff --git a/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php index a4c398ef45c2..18cb0fef3cdb 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php @@ -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. * @@ -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)); + } }