Skip to content

Commit d46c4f2

Browse files
committed
refactor: clean up whitespace in AMQPSwoole class
- Removed unnecessary whitespace in the AMQPSwoole class to improve code readability. - Ensured consistent formatting by adding a newline at the end of the file.
1 parent 346599d commit d46c4f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Queue/Broker/AMQPSwoole.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AMQPSwoole extends AMQP
99
{
1010
/**
1111
* Override the withChannel method to use AMQPSwooleConnection instead of AMQPStreamConnection
12-
*
12+
*
1313
* @param callable(AMQPChannel $channel): void $callback
1414
* @throws \Exception
1515
*/
@@ -32,17 +32,17 @@ protected function withChannel(callable $callback): void
3232
$this->heartbeat, // heartbeat
3333
0.0 // channel_rpc_timeout
3434
);
35-
35+
3636
if (is_callable($this->connectionConfigHook)) {
3737
call_user_func($this->connectionConfigHook, $connection);
3838
}
39-
39+
4040
$channel = $connection->channel();
41-
41+
4242
if (is_callable($this->channelConfigHook)) {
4343
call_user_func($this->channelConfigHook, $channel);
4444
}
45-
45+
4646
return $channel;
4747
};
4848

@@ -60,4 +60,4 @@ protected function withChannel(callable $callback): void
6060
$callback($this->channel);
6161
}
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)