Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon authored and github-actions[bot] committed Nov 24, 2023
1 parent 0137406 commit c2824c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Channels/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Support\Arr;
use Laravel\Reverb\Contracts\ChannelConnectionManager;
use Laravel\Reverb\Contracts\Connection;
use Laravel\Reverb\Output;
use React\Promise\Promise;

class Channel
Expand Down Expand Up @@ -97,7 +96,7 @@ public function broadcast(array $payload, Connection $except = null): void
if ($except && $except->id() === $connection->connection()->id()) {
break;
}

if (isset($payload['except']) && $payload['except'] === $connection->connection()->id()) {
break;
}
Expand All @@ -106,8 +105,8 @@ public function broadcast(array $payload, Connection $except = null): void
$resolve();
}
} catch (Exception $e) {
$reject($e);
}
$reject($e);
}
});
}
}
Expand Down

0 comments on commit c2824c1

Please sign in to comment.