Completed
Push — master ( 0abcb0...7130b4 )
by
unknown
63:00 queued 23:32
created
Command/RunJobCommand.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
     /**
26 26
      * RunJobCommand constructor.
27 27
      *
28
-     * @param LoggerInterface $logger
29 28
      * @param Worker $worker
30 29
      */
31 30
     public function __construct(Worker $worker)
Please login to merge, or discard this patch.
Command/RetryCommand.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
      * RetryCommand constructor.
36 36
      *
37 37
      * @param JobQueue $queue
38
-     * @param MongoDriverInterface $mongoDriver
39 38
      */
40 39
     public function __construct(JobQueue $queue, FailedJobProviderInterface $failer)
41 40
     {
Please login to merge, or discard this patch.
Job/MongoJobContract.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SfCod\QueueBundle\Base\JobInterface;
6 6
 use SfCod\QueueBundle\Base\JobResolverInterface;
7 7
 use SfCod\QueueBundle\Queue\QueueInterface;
8
-use stdClass;
9 8
 
10 9
 /**
11 10
  * MongoJob for laravel queue
Please login to merge, or discard this patch.
Queue/MongoQueue.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param mixed $data
92 92
      * @param string $queue
93 93
      *
94
-     * @return mixed
94
+     * @return \MongoDB\InsertOneResult
95 95
      */
96 96
     public function push(string $job, array $data = [], ?string $queue = null)
97 97
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @param string $queue
105 105
      *
106
-     * @return null|JobContractInterface
106
+     * @return MongoJobContract|null
107 107
      */
108 108
     public function pop(?string $queue = null): ?JobContractInterface
109 109
     {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param string|null $queue
141 141
      * @param array $options
142 142
      *
143
-     * @return mixed
143
+     * @return \MongoDB\InsertOneResult
144 144
      */
145 145
     public function pushRaw(string $payload, ?string $queue = null, array $options = [])
146 146
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * @param array $data
156 156
      * @param string $queue
157 157
      *
158
-     * @return mixed
158
+     * @return \MongoDB\InsertOneResult
159 159
      */
160 160
     public function later($delay, string $job, array $data = [], ?string $queue = null)
161 161
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * @param mixed $data
170 170
      * @param string $queue
171 171
      *
172
-     * @return mixed
172
+     * @return \MongoDB\InsertOneResult
173 173
      */
174 174
     public function bulk(array $jobs, array $data = [], ?string $queue = null)
175 175
     {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      * @param \StdClass $job
192 192
      * @param DateInterval|int $delay
193 193
      *
194
-     * @return mixed
194
+     * @return \MongoDB\InsertOneResult
195 195
      */
196 196
     public function release(string $queue, StdClass $job, $delay)
197 197
     {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      *
204 204
      * @param $id
205 205
      *
206
-     * @return null|JobContractInterface
206
+     * @return null|MongoJobContract
207 207
      */
208 208
     public function getJobById($id): ?JobContractInterface
209 209
     {
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      * @param string $payload
315 315
      * @param int $attempts
316 316
      *
317
-     * @return mixed
317
+     * @return \MongoDB\InsertOneResult
318 318
      */
319 319
     protected function pushToDatabase($delay, $queue, $payload, $attempts = 0)
320 320
     {
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     /**
327 327
      * Get the "available at" UNIX timestamp.
328 328
      *
329
-     * @param DateInterval|int $delay
329
+     * @param integer $delay
330 330
      *
331 331
      * @return int
332 332
      */
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
      *
355 355
      * @param string|null $queue
356 356
      *
357
-     * @return null|JobContractInterface
357
+     * @return MongoJobContract|null
358 358
      */
359 359
     protected function getNextAvailableJob($queue)
360 360
     {
Please login to merge, or discard this patch.
Service/JobQueue.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * JobQueue constructor.
25 25
      *
26
-     * @param ContainerInterface $container
27
-     * @param array $connections
28 26
      *
29 27
      * @internal param array $config
30 28
      */
@@ -89,7 +87,7 @@  discard block
 block discarded – undo
89 87
     /**
90 88
      * Push a new job onto the queue after a delay.
91 89
      *
92
-     * @param \DateTime|int $delay
90
+     * @param integer $delay
93 91
      * @param string $job
94 92
      * @param mixed $data
95 93
      * @param string $queue
@@ -105,7 +103,7 @@  discard block
 block discarded – undo
105 103
     /**
106 104
      * Push a new job into the queue after a delay if job does not exist.
107 105
      *
108
-     * @param \DateTime|int $delay
106
+     * @param integer $delay
109 107
      * @param string $job
110 108
      * @param mixed $data
111 109
      * @param string $queue
Please login to merge, or discard this patch.
Worker/Worker.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,6 @@
 block discarded – undo
70 70
     /**
71 71
      * Worker constructor.
72 72
      *
73
-     * @param QueueInterface $queue
74 73
      * @param JobProcess $process
75 74
      * @param FailedJobProviderInterface $failer
76 75
      * @param ExceptionHandlerInterface $exceptions
Please login to merge, or discard this patch.
Event/JobFailedEvent.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@
 block discarded – undo
43 43
      * @param string $connectionName
44 44
      * @param JobContractInterface $job
45 45
      * @param Exception $exception
46
-     * @param array $config
47 46
      */
48 47
     public function __construct(string $connectionName, JobContractInterface $job, Exception $exception)
49 48
     {
Please login to merge, or discard this patch.
Event/JobProcessedEvent.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,6 @@
 block discarded – undo
34 34
      *
35 35
      * @param string $connectionName
36 36
      * @param JobContractInterface $job
37
-     * @param array $config
38 37
      */
39 38
     public function __construct(string $connectionName, JobContractInterface $job)
40 39
     {
Please login to merge, or discard this patch.
Event/JobProcessingEvent.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,6 @@
 block discarded – undo
34 34
      *
35 35
      * @param string $connectionName
36 36
      * @param JobContractInterface $job
37
-     * @param array $config
38 37
      */
39 38
     public function __construct(string $connectionName, JobContractInterface $job)
40 39
     {
Please login to merge, or discard this patch.