Code Duplication    Length = 8-8 lines in 3 locations

src/RunOpenCode/Bundle/ExchangeRate/Form/Dto/Rate.php 3 locations

@@ 147-154 (lines=8) @@
144
    /**
145
     * {@inheritdoc}
146
     */
147
    public function getSourceName()
148
    {
149
        if (false !== strpos($this->getRate(), '.')) {
150
            return explode('.', $this->getRate())[0];
151
        }
152
153
        return null;
154
    }
155
156
    /**
157
     * {@inheritdoc}
@@ 159-166 (lines=8) @@
156
    /**
157
     * {@inheritdoc}
158
     */
159
    public function getCurrencyCode()
160
    {
161
        if (false !== strpos($this->getRate(), '.')) {
162
            return explode('.', $this->getRate())[2];
163
        }
164
165
        return null;
166
    }
167
168
    /**
169
     * {@inheritdoc}
@@ 171-178 (lines=8) @@
168
    /**
169
     * {@inheritdoc}
170
     */
171
    public function getRateType()
172
    {
173
        if (false !== strpos($this->getRate(), '.')) {
174
            return explode('.', $this->getRate())[1];
175
        }
176
177
        return null;
178
    }
179
180
    /**
181
     * {@inheritdoc}