Skip to content

Commit 9275f17

Browse files
committed
format codestyle
1 parent fcc2606 commit 9275f17

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/SSE.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ public function __construct(Event $event)
1818
public function start($interval = 3)
1919
{
2020
while (true) {
21-
2221
try {
2322
echo $this->event->fill();
2423
} catch (StopSSEException $e) {
2524
return;
2625
}
27-
28-
if(ob_get_level() > 0) {
26+
27+
if (ob_get_level() > 0) {
2928
ob_flush();
3029
}
3130

3231
flush();
33-
32+
3433
// if the connection has been closed by the client we better exit the loop
3534
if (connection_aborted()) {
3635
return;

0 commit comments

Comments
 (0)