Completed
Push — master ( c9cbf5...959f68 )
by
unknown
01:24
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.
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.
Service/JobQueue.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Push a new job onto the queue after a delay.
89 89
      *
90
-     * @param \DateInterval|int $delay
90
+     * @param integer $delay
91 91
      * @param string $job
92 92
      * @param mixed $data
93 93
      * @param string $queue
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * Push a new job into the queue after a delay if job does not exist.
105 105
      *
106
-     * @param \DateInterval|int $delay
106
+     * @param integer $delay
107 107
      * @param string $job
108 108
      * @param mixed $data
109 109
      * @param string $queue
Please login to merge, or discard this patch.
Queue/MongoQueue.php 1 patch
Doc Comments   +13 added lines, -13 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
     {
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * Push a new job onto the queue after a delay.
153 153
      *
154
-     * @param DateInterval|int $delay
154
+     * @param integer $delay
155 155
      * @param string $job
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
     {
@@ -166,11 +166,11 @@  discard block
 block discarded – undo
166 166
     /**
167 167
      * Push an array of jobs onto the queue.
168 168
      *
169
-     * @param array $jobs
169
+     * @param string[] $jobs
170 170
      * @param mixed $data
171 171
      * @param string $queue
172 172
      *
173
-     * @return mixed
173
+     * @return \MongoDB\InsertManyResult
174 174
      */
175 175
     public function bulk(array $jobs, array $data = [], ?string $queue = null)
176 176
     {
@@ -189,9 +189,9 @@  discard block
 block discarded – undo
189 189
      * Release a reserved job back onto the queue.
190 190
      *
191 191
      * @param JobContractInterface $job
192
-     * @param DateInterval|int $delay
192
+     * @param integer $delay
193 193
      *
194
-     * @return mixed
194
+     * @return \MongoDB\InsertOneResult
195 195
      */
196 196
     public function release(JobContractInterface $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
     {
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      * @param string $payload
319 319
      * @param int $attempts
320 320
      *
321
-     * @return mixed
321
+     * @return \MongoDB\InsertOneResult
322 322
      */
323 323
     protected function pushToDatabase($delay, $queue, $payload, $attempts = 0)
324 324
     {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     /**
331 331
      * Get the "available at" UNIX timestamp.
332 332
      *
333
-     * @param DateInterval|int $delay
333
+     * @param integer $delay
334 334
      *
335 335
      * @return int
336 336
      */
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      *
359 359
      * @param string|null $queue
360 360
      *
361
-     * @return null|JobContractInterface
361
+     * @return JobContract|null
362 362
      */
363 363
     protected function getNextAvailableJob($queue)
364 364
     {
Please login to merge, or discard this patch.
Command/RetryCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SfCod\QueueBundle\Command;
4 4
 
5
-use SfCod\QueueBundle\Base\MongoDriverInterface;
6 5
 use SfCod\QueueBundle\Entity\Job;
7 6
 use SfCod\QueueBundle\Failer\FailedJobProviderInterface;
8 7
 use SfCod\QueueBundle\Service\JobQueue;
Please login to merge, or discard this patch.