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

@@ 270-272 (lines=3) @@
267
     */
268
    protected function setJobId(\Dtc\QueueBundle\Model\Job $job)
269
    {
270
        if (!$job->getId()) {
271
            $job->setId(uniqid($this->hostname.'-'.$this->pid, true));
272
        }
273
    }
274
275
    /**