Code Duplication    Length = 3-3 lines in 2 locations

RabbitMQ/JobManager.php 1 location

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

Redis/JobManager.php 1 location

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