Code Duplication    Length = 3-3 lines in 2 locations

RabbitMQ/JobManager.php 1 location

@@ 167-169 (lines=3) @@
164
     */
165
    protected function setJobId(\Dtc\QueueBundle\Model\Job $job)
166
    {
167
        if (!$job->getId()) {
168
            $job->setId(uniqid($this->hostname.'-'.$this->pid, true));
169
        }
170
    }
171
172
    /**

Redis/JobManager.php 1 location

@@ 265-267 (lines=3) @@
262
     */
263
    protected function setJobId(\Dtc\QueueBundle\Model\Job $job)
264
    {
265
        if (!$job->getId()) {
266
            $job->setId(uniqid($this->hostname.'-'.$this->pid, true));
267
        }
268
    }
269
270
    /**