@@ 68-70 (lines=3) @@ | ||
65 | /** |
|
66 | * @var RateInterface $rate |
|
67 | */ |
|
68 | foreach ($rates as $rate) { |
|
69 | $this->rates[$this->getRateKey($rate->getCurrencyCode(), $rate->getDate(), $rate->getRateType(), $rate->getSourceName())] = $rate; |
|
70 | } |
|
71 | ||
72 | usort($this->rates, function(RateInterface $rate1, RateInterface $rate2) { |
|
73 | return ($rate1->getDate() > $rate2->getDate()) ? -1 : 1; |
|
@@ 98-100 (lines=3) @@ | ||
95 | /** |
|
96 | * @var RateInterface $rate |
|
97 | */ |
|
98 | foreach ($rates as $rate) { |
|
99 | unset($this->rates[$this->getRateKey($rate->getCurrencyCode(), $rate->getDate(), $rate->getRateType(), $rate->getSourceName())]); |
|
100 | } |
|
101 | ||
102 | $this->save(array()); |
|
103 | } |