Code Duplication    Length = 3-3 lines in 2 locations

src/RunOpenCode/ExchangeRate/Repository/DoctrineDbalRepository.php 2 locations

@@ 187-189 (lines=3) @@
184
                ]
185
            );
186
187
            if (0 === count($result)) {
188
                throw new ExchangeRateException(sprintf('Could not fetch rate for rate currency code "%s" and rate type "%s" on date "%s".', $currencyCode, $rateType, $date->format('Y-m-d')));
189
            }
190
191
            $this->identityMap[$key] = $this->buildRateFromTableRowData($result[0]);
192
        }
@@ 214-216 (lines=3) @@
211
            ]
212
        );
213
214
        if (0 === count($result)) {
215
            throw new ExchangeRateException(sprintf('Could not fetch rate for rate currency code "%s" and rate type "%s" on date "%s".', $currencyCode, $rateType, $date->format('Y-m-d')));
216
        }
217
218
        $rate = $this->buildRateFromTableRowData($result[0]);
219
        $key = $this->getRateKey($rate->getCurrencyCode(), $rate->getDate(), $rate->getRateType(), $rate->getSourceName());