Completed
Pull Request — master (#3)
by
unknown
39:33
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.
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.
Job/JobContract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      *
90 90
      * @param JobResolverInterface $resolver
91 91
      * @param QueueInterface $database
92
-     * @param StdClass|MongoDB\Model\BSONDocument $job
92
+     * @param Job $job
93 93
      */
94 94
     public function __construct(JobResolverInterface $resolver, QueueInterface $database, Job $job)
95 95
     {
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
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * @param mixed $data
93 93
      * @param string $queue
94 94
      *
95
-     * @return mixed
95
+     * @return \MongoDB\InsertOneResult
96 96
      */
97 97
     public function push(string $job, array $data = [], ?string $queue = null)
98 98
     {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      *
105 105
      * @param string $queue
106 106
      *
107
-     * @return null|JobContractInterface
107
+     * @return JobContract|null
108 108
      */
109 109
     public function pop(?string $queue = null): ?JobContractInterface
110 110
     {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * @param string|null $queue
142 142
      * @param array $options
143 143
      *
144
-     * @return mixed
144
+     * @return \MongoDB\InsertOneResult
145 145
      */
146 146
     public function pushRaw(string $payload, ?string $queue = null, array $options = [])
147 147
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * @param array $data
157 157
      * @param string $queue
158 158
      *
159
-     * @return mixed
159
+     * @return \MongoDB\InsertOneResult
160 160
      */
161 161
     public function later($delay, string $job, array $data = [], ?string $queue = null)
162 162
     {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @param mixed $data
171 171
      * @param string $queue
172 172
      *
173
-     * @return mixed
173
+     * @return \MongoDB\InsertOneResult
174 174
      */
175 175
     public function bulk(array $jobs, array $data = [], ?string $queue = null)
176 176
     {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      * @param Job $job
192 192
      * @param DateInterval|int $delay
193 193
      *
194
-     * @return mixed
194
+     * @return \MongoDB\InsertOneResult
195 195
      */
196 196
     public function release(Job $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|JobContract
207 207
      */
208 208
     public function getJobById($id): ?JobContractInterface
209 209
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      * @param string $payload
313 313
      * @param int $attempts
314 314
      *
315
-     * @return mixed
315
+     * @return \MongoDB\InsertOneResult
316 316
      */
317 317
     protected function pushToDatabase($delay, $queue, $payload, $attempts = 0)
318 318
     {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     /**
325 325
      * Get the "available at" UNIX timestamp.
326 326
      *
327
-     * @param DateInterval|int $delay
327
+     * @param integer $delay
328 328
      *
329 329
      * @return int
330 330
      */
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      *
353 353
      * @param string|null $queue
354 354
      *
355
-     * @return null|JobContractInterface
355
+     * @return JobContract|null
356 356
      */
357 357
     protected function getNextAvailableJob($queue)
358 358
     {
Please login to merge, or discard this patch.