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 1
1
<?php
2
- /************************************************************************
3
- *
2
+ /**
4
3
* Copyright 2024 Adobe
5
4
* 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
- * ************************************************************************
16
5
*/
17
6
declare (strict_types=1 );
18
7
@@ -56,15 +45,14 @@ public function __construct(
56
45
57
46
public function apply (array $ data = []): ?DataObject
58
47
{
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 ;
65
52
}
66
- return $ this ->currency ->saveRates ($ data );
67
53
}
54
+
55
+ return $ this ->currency ->saveRates ($ data );
68
56
}
69
57
70
58
public function revert (DataObject $ data ): void
You can’t perform that action at this time.
0 commit comments