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

@@ 259-261 (lines=3) @@
256
     */
257
    protected function setJobId(\Dtc\QueueBundle\Model\Job $job)
258
    {
259
        if (!$job->getId()) {
260
            $job->setId(uniqid($this->hostname.'-'.$this->pid, true));
261
        }
262
    }
263
264
    /**