Completed
Push — master ( 88d4d7...cb7e46 )
by
unknown
68:19 queued 21:46
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.
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.
Queue/MongoQueue.php 1 patch
Doc Comments   +13 added lines, -13 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
     {
@@ -150,12 +150,12 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Push a new job onto the queue after a delay.
152 152
      *
153
-     * @param DateInterval|int $delay
153
+     * @param integer $delay
154 154
      * @param string $job
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
     {
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * Push an array of jobs onto the queue.
167 167
      *
168
-     * @param array $jobs
168
+     * @param string[] $jobs
169 169
      * @param mixed $data
170 170
      * @param string $queue
171 171
      *
172
-     * @return mixed
172
+     * @return \MongoDB\InsertManyResult
173 173
      */
174 174
     public function bulk(array $jobs, array $data = [], ?string $queue = null)
175 175
     {
@@ -189,9 +189,9 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @param string $queue
191 191
      * @param \StdClass $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(string $queue, $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
     {
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      * @param string $payload
321 321
      * @param int $attempts
322 322
      *
323
-     * @return mixed
323
+     * @return \MongoDB\InsertOneResult
324 324
      */
325 325
     protected function pushToDatabase($delay, $queue, $payload, $attempts = 0)
326 326
     {
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     /**
333 333
      * Get the "available at" UNIX timestamp.
334 334
      *
335
-     * @param DateInterval|int $delay
335
+     * @param integer $delay
336 336
      *
337 337
      * @return int
338 338
      */
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      *
361 361
      * @param string|null $queue
362 362
      *
363
-     * @return null|JobContractInterface
363
+     * @return MongoJobContract|null
364 364
      */
365 365
     protected function getNextAvailableJob($queue)
366 366
     {
Please login to merge, or discard this patch.