@@ -28,8 +28,6 @@ trait OffersHooks
2828
2929 /**
3030 * Needs to be called in order to initialize the trait.
31- *
32- * @return void
3331 */
3432 protected function initializeEventHandlers (): void
3533 {
@@ -59,9 +57,6 @@ protected function initializeEventHandlers(): void
5957 * ```
6058 *
6159 * Multiple event handlers can be registered at the same time.
62- *
63- * @param \Closure $callback
64- * @return MqttClient
6560 */
6661 public function registerLoopEventHandler (\Closure $ callback ): MqttClient
6762 {
@@ -77,9 +72,6 @@ public function registerLoopEventHandler(\Closure $callback): MqttClient
7772 *
7873 * This does not affect other registered event handlers. It is possible
7974 * to unregister all registered event handlers by passing null as callback.
80- *
81- * @param \Closure|null $callback
82- * @return MqttClient
8375 */
8476 public function unregisterLoopEventHandler (\Closure $ callback = null ): MqttClient
8577 {
@@ -96,9 +88,6 @@ public function unregisterLoopEventHandler(\Closure $callback = null): MqttClien
9688 /**
9789 * Runs all registered loop event handlers with the given parameters.
9890 * Each event handler is executed in a try-catch block to avoid spilling exceptions.
99- *
100- * @param float $elapsedTime
101- * @return void
10291 */
10392 private function runLoopEventHandlers (float $ elapsedTime ): void
10493 {
@@ -134,9 +123,6 @@ private function runLoopEventHandlers(float $elapsedTime): void
134123 * ```
135124 *
136125 * Multiple event handlers can be registered at the same time.
137- *
138- * @param \Closure $callback
139- * @return MqttClient
140126 */
141127 public function registerPublishEventHandler (\Closure $ callback ): MqttClient
142128 {
@@ -152,9 +138,6 @@ public function registerPublishEventHandler(\Closure $callback): MqttClient
152138 *
153139 * This does not affect other registered event handlers. It is possible
154140 * to unregister all registered event handlers by passing null as callback.
155- *
156- * @param \Closure|null $callback
157- * @return MqttClient
158141 */
159142 public function unregisterPublishEventHandler (\Closure $ callback = null ): MqttClient
160143 {
@@ -171,13 +154,6 @@ public function unregisterPublishEventHandler(\Closure $callback = null): MqttCl
171154 /**
172155 * Runs all the registered publish event handlers with the given parameters.
173156 * Each event handler is executed in a try-catch block to avoid spilling exceptions.
174- *
175- * @param string $topic
176- * @param string $message
177- * @param int|null $messageId
178- * @param int $qualityOfService
179- * @param bool $retain
180- * @return void
181157 */
182158 private function runPublishEventHandlers (string $ topic , string $ message , ?int $ messageId , int $ qualityOfService , bool $ retain ): void
183159 {
@@ -214,9 +190,6 @@ private function runPublishEventHandlers(string $topic, string $message, ?int $m
214190 * ```
215191 *
216192 * Multiple event handlers can be registered at the same time.
217- *
218- * @param \Closure $callback
219- * @return MqttClient
220193 */
221194 public function registerMessageReceivedEventHandler (\Closure $ callback ): MqttClient
222195 {
@@ -231,9 +204,6 @@ public function registerMessageReceivedEventHandler(\Closure $callback): MqttCli
231204 *
232205 * This does not affect other registered event handlers. It is possible
233206 * to unregister all registered event handlers by passing null as callback.
234- *
235- * @param \Closure|null $callback
236- * @return MqttClient
237207 */
238208 public function unregisterMessageReceivedEventHandler (\Closure $ callback = null ): MqttClient
239209 {
@@ -250,12 +220,6 @@ public function unregisterMessageReceivedEventHandler(\Closure $callback = null)
250220 /**
251221 * Runs all the registered message received event handlers with the given parameters.
252222 * Each event handler is executed in a try-catch block to avoid spilling exceptions.
253- *
254- * @param string $topic
255- * @param string $message
256- * @param int $qualityOfService
257- * @param bool $retained
258- * @return void
259223 */
260224 private function runMessageReceivedEventHandlers (string $ topic , string $ message , int $ qualityOfService , bool $ retained ): void
261225 {
@@ -293,9 +257,6 @@ private function runMessageReceivedEventHandlers(string $topic, string $message,
293257 * ```
294258 *
295259 * Multiple event handlers can be registered at the same time.
296- *
297- * @param \Closure $callback
298- * @return MqttClient
299260 */
300261 public function registerConnectedEventHandler (\Closure $ callback ): MqttClient
301262 {
@@ -310,9 +271,6 @@ public function registerConnectedEventHandler(\Closure $callback): MqttClient
310271 *
311272 * This does not affect other registered event handlers. It is possible
312273 * to unregister all registered event handlers by passing null as callback.
313- *
314- * @param \Closure|null $callback
315- * @return MqttClient
316274 */
317275 public function unregisterConnectedEventHandler (\Closure $ callback = null ): MqttClient
318276 {
@@ -329,9 +287,6 @@ public function unregisterConnectedEventHandler(\Closure $callback = null): Mqtt
329287 /**
330288 * Runs all the registered connected event handlers.
331289 * Each event handler is executed in a try-catch block to avoid spilling exceptions.
332- *
333- * @param bool $isAutoReconnect
334- * @return void
335290 */
336291 private function runConnectedEventHandlers (bool $ isAutoReconnect ): void
337292 {
0 commit comments