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

@@ 250-252 (lines=3) @@
247
     */
248
    protected function setJobId(\Dtc\QueueBundle\Model\Job $job)
249
    {
250
        if (!$job->getId()) {
251
            $job->setId(uniqid($this->hostname.'-'.$this->pid, true));
252
        }
253
    }
254
255
    /**