Completed
Push — master ( 959f68...c6517b )
by Alexey
29s queued 12s
created
Queue/MongoQueue.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param mixed $data
95 95
      * @param string|null $queue
96 96
      *
97
-     * @return mixed
97
+     * @return \MongoDB\InsertOneResult
98 98
      */
99 99
     public function push(string $job, array $data = [], ?string $queue = null)
100 100
     {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *
107 107
      * @param string|null $queue
108 108
      *
109
-     * @return JobContractInterface|null
109
+     * @return JobContract|null
110 110
      */
111 111
     public function pop(?string $queue = null): ?JobContractInterface
112 112
     {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * @param string|null $queue
144 144
      * @param array $options
145 145
      *
146
-     * @return mixed
146
+     * @return \MongoDB\InsertOneResult
147 147
      */
148 148
     public function pushRaw(string $payload, ?string $queue = null, array $options = [])
149 149
     {
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * Push a new job onto the queue after a delay.
155 155
      *
156
-     * @param DateInterval|int $delay
156
+     * @param integer $delay
157 157
      * @param string $job
158 158
      * @param array $data
159 159
      * @param string|null $queue
160 160
      *
161
-     * @return mixed
161
+     * @return \MongoDB\InsertOneResult
162 162
      */
163 163
     public function later($delay, string $job, array $data = [], ?string $queue = null)
164 164
     {
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * Push an array of jobs onto the queue.
170 170
      *
171
-     * @param array $jobs
171
+     * @param string[] $jobs
172 172
      * @param mixed $data
173 173
      * @param string|null $queue
174 174
      *
175
-     * @return mixed
175
+     * @return \MongoDB\InsertManyResult
176 176
      */
177 177
     public function bulk(array $jobs, array $data = [], ?string $queue = null)
178 178
     {
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
      * Release a reserved job back onto the queue.
192 192
      *
193 193
      * @param JobContractInterface $job
194
-     * @param DateInterval|int $delay
194
+     * @param integer $delay
195 195
      *
196
-     * @return mixed
196
+     * @return \MongoDB\InsertOneResult
197 197
      */
198 198
     public function release(JobContractInterface $job, $delay)
199 199
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * @param string $queue
207 207
      * @param string $id
208 208
      *
209
-     * @return JobContractInterface|null
209
+     * @return null|JobContract
210 210
      */
211 211
     public function getJobById(string $queue, string $id): ?JobContractInterface
212 212
     {
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      * @param string $payload
322 322
      * @param int $attempts
323 323
      *
324
-     * @return mixed
324
+     * @return \MongoDB\InsertOneResult
325 325
      */
326 326
     protected function pushToDatabase($delay, $queue, $payload, $attempts = 0)
327 327
     {
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     /**
334 334
      * Get the "available at" UNIX timestamp.
335 335
      *
336
-     * @param DateInterval|int $delay
336
+     * @param integer $delay
337 337
      *
338 338
      * @return int
339 339
      */
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @param string|null $queue
363 363
      *
364
-     * @return JobContractInterface|null
364
+     * @return JobContract|null
365 365
      */
366 366
     protected function getNextAvailableJob($queue)
367 367
     {
Please login to merge, or discard this patch.
Queue/RedisQueue.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @param string|null $queue
156 156
      *
157
-     * @return JobContractInterface|null
157
+     * @return null|JobContract
158 158
      */
159 159
     public function pop(?string $queue = null): ?JobContractInterface
160 160
     {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * @param string $queue
223 223
      * @param string $id
224 224
      *
225
-     * @return JobContractInterface|null
225
+     * @return null|JobContract
226 226
      */
227 227
     public function getJobById(string $queue, string $id): ?JobContractInterface
228 228
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     /**
313 313
      * Get the "available at" UNIX timestamp.
314 314
      *
315
-     * @param DateInterval|int $delay
315
+     * @param integer $delay
316 316
      *
317 317
      * @return int
318 318
      */
Please login to merge, or discard this patch.