File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed
app/code/Magento/Directory/Test/Fixture Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change 11<?php
2- /************************************************************************
3- *
2+ /**
43 * Copyright 2024 Adobe
54 * All Rights Reserved.
6- *
7- * NOTICE: All information contained herein is, and remains
8- * the property of Adobe and its suppliers, if any. The intellectual
9- * and technical concepts contained herein are proprietary to Adobe
10- * and its suppliers and are protected by all applicable intellectual
11- * property laws, including trade secret and copyright laws.
12- * Dissemination of this information or reproduction of this material
13- * is strictly forbidden unless prior written permission is obtained
14- * from Adobe.
15- * ************************************************************************
165 */
176declare (strict_types=1 );
187
@@ -56,15 +45,14 @@ public function __construct(
5645
5746 public function apply (array $ data = []): ?DataObject
5847 {
59- if (is_array ($ data )) {
60- foreach ($ data as $ currencyCode => $ rate ) {
61- foreach ($ rate as $ currencyTo => $ value ) {
62- $ value = abs ((float ) $ this ->format ->getNumber ($ value ));
63- $ data [$ currencyCode ][$ currencyTo ] = $ value ;
64- }
48+ foreach ($ data as $ currencyCode => $ rate ) {
49+ foreach ($ rate as $ currencyTo => $ value ) {
50+ $ value = abs ((float ) $ this ->format ->getNumber ($ value ));
51+ $ data [$ currencyCode ][$ currencyTo ] = $ value ;
6552 }
66- return $ this ->currency ->saveRates ($ data );
6753 }
54+
55+ return $ this ->currency ->saveRates ($ data );
6856 }
6957
7058 public function revert (DataObject $ data ): void
You can’t perform that action at this time.
0 commit comments