@@ -33,9 +33,9 @@ class KafkaQueue extends Queue implements QueueContract
3333 private $ consumer ;
3434
3535 /**
36- * @param \RdKafka\Producer $producer
36+ * @param \RdKafka\Producer $producer
3737 * @param \RdKafka\KafkaConsumer $consumer
38- * @param array $config
38+ * @param array $config
3939 */
4040 public function __construct (\RdKafka \Producer $ producer , \RdKafka \KafkaConsumer $ consumer , $ config )
4141 {
@@ -64,7 +64,7 @@ public function size($queue = null)
6464 * Push a new job onto the queue.
6565 *
6666 * @param string $job
67- * @param mixed $data
67+ * @param mixed $data
6868 * @param string $queue
6969 *
7070 * @return bool
@@ -79,7 +79,7 @@ public function push($job, $data = '', $queue = null)
7979 *
8080 * @param string $payload
8181 * @param string $queue
82- * @param array $options
82+ * @param array $options
8383 *
8484 * @return mixed
8585 */
@@ -102,9 +102,9 @@ public function pushRaw($payload, $queue = null, array $options = [])
102102 * Push a new job onto the queue after a delay.
103103 *
104104 * @param \DateTime|int $delay
105- * @param string $job
106- * @param mixed $data
107- * @param string $queue
105+ * @param string $job
106+ * @param mixed $data
107+ * @param string $queue
108108 *
109109 * @return mixed
110110 */
@@ -191,27 +191,29 @@ public function getCorrelationId()
191191 /**
192192 * Create a payload array from the given job and data.
193193 *
194- * @param string $job
195- * @param mixed $data
196- * @param string $queue
194+ * @param string $job
195+ * @param mixed $data
196+ * @param string $queue
197+ *
197198 * @return array
198199 */
199- protected function createPayloadArray ($ job , $ data = '' , $ queue = null ){
200- return array_merge (parent ::createPayloadArray ($ job , $ data ), [
200+ protected function createPayloadArray ($ job , $ data = '' , $ queue = null )
201+ {
202+ return array_merge (parent ::createPayloadArray ($ job , $ data ), [
201203 'id ' => $ this ->getCorrelationId (),
202204 'attempts ' => 0 ,
203205 ]);
204206 }
205207
206208 /**
207- * @param string $action
209+ * @param string $action
208210 * @param Exception $e
209211 *
210212 * @throws Exception
211213 */
212214 protected function reportConnectionError ($ action , Exception $ e )
213215 {
214- Log::error ('Kafka error while attempting ' . $ action. ': ' . $ e ->getMessage ());
216+ Log::error ('Kafka error while attempting ' . $ action . ': ' . $ e ->getMessage ());
215217
216218 // If it's set to false, throw an error rather than waiting
217219 if ($ this ->sleepOnError === false ) {
0 commit comments