src/RunOpenCode/ExchangeRate/Repository/FileRepository.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 98-108 (lines=11) @@ | 
                                                            
                                    | 95 |  |     /** | 
                                                            
                                    | 96 |  |      * {@inheritdoc} | 
                                                            
                                    | 97 |  |      */ | 
                                                            
                                    | 98 |  |     public function delete(array $rates) | 
                                                            
                                    | 99 |  |     { | 
                                                            
                                    | 100 |  |         /** | 
                                                            
                                    | 101 |  |          * @var RateInterface $rate | 
                                                            
                                    | 102 |  |          */ | 
                                                            
                                    | 103 |  |         foreach ($rates as $rate) { | 
                                                            
                                    | 104 |  |             unset($this->rates[$this->getRateKey($rate->getCurrencyCode(), $rate->getDate(), $rate->getRateType(), $rate->getSourceName())]); | 
                                                            
                                    | 105 |  |         } | 
                                                            
                                    | 106 |  |  | 
                                                            
                                    | 107 |  |         $this->save(array()); | 
                                                            
                                    | 108 |  |     } | 
                                                            
                                    | 109 |  |  | 
                                                            
                                    | 110 |  |     /** | 
                                                            
                                    | 111 |  |      * {@inheritdoc} | 
                                                                        
                 
                                                            
                    
src/RunOpenCode/ExchangeRate/Repository/MemoryRepository.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 57-65 (lines=9) @@ | 
                                                            
                                    | 54 |  |     /** | 
                                                            
                                    | 55 |  |      * {@inheritdoc} | 
                                                            
                                    | 56 |  |      */ | 
                                                            
                                    | 57 |  |     public function delete(array $rates) | 
                                                            
                                    | 58 |  |     { | 
                                                            
                                    | 59 |  |         /** | 
                                                            
                                    | 60 |  |          * @var RateInterface $rate | 
                                                            
                                    | 61 |  |          */ | 
                                                            
                                    | 62 |  |         foreach ($rates as $rate) { | 
                                                            
                                    | 63 |  |             unset($this->rates[$this->getRateKey($rate->getCurrencyCode(), $rate->getDate(), $rate->getRateType(), $rate->getSourceName())]); | 
                                                            
                                    | 64 |  |         } | 
                                                            
                                    | 65 |  |     } | 
                                                            
                                    | 66 |  |  | 
                                                            
                                    | 67 |  |     /** | 
                                                            
                                    | 68 |  |      * {@inheritdoc} |