Completed
Pull Request — master (#3)
by
unknown
39:33
created
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.
Tests/Job/JobContractTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,6 @@
 block discarded – undo
141 141
     /**
142 142
      * Mock mongo job contract
143 143
      *
144
-     * @param Job $job
145 144
      * @param JobInterface|null $jobInstance
146 145
      *
147 146
      * @return JobContract
Please login to merge, or discard this patch.