Code Duplication    Length = 8-8 lines in 2 locations

src/Provider/AbstractProvider.php 1 location

@@ 75-82 (lines=8) @@
72
    /**
73
     * {@inheritDoc}
74
     */
75
    public function getNameWithPrefix()
76
    {
77
        if (!empty($this->options['queue_name'])) {
78
            return $this->options['queue_name'];
79
        }
80
81
        return sprintf("%s_%s", self::QPUSH_PREFIX, $this->name);
82
    }
83
84
    /**
85
     * {@inheritDoc}

src/Provider/DoctrineProvider.php 1 location

@@ 54-61 (lines=8) @@
51
     *
52
     * @return string
53
     */
54
    public function getNameWithPrefix()
55
    {
56
        if (!empty($this->options['queue_name'])) {
57
            return $this->options['queue_name'];
58
        }
59
60
        return sprintf("%s_%s", self::QPUSH_PREFIX, $this->name);
61
    }
62
63
    /**
64
     * Returns the Queue Provider name