File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
app/code/Magento/Directory/Model/Currency/Import Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
2
8
namespace Magento \Directory \Model \Currency \Import ;
3
9
4
10
class CurrencyConverterApi extends AbstractImport
5
11
{
6
12
/**
7
13
* @var string
8
14
*/
9
- const CURRENCY_CONVERTER_URL = 'http://free.currencyconverterapi.com/api/v3/convert?q={{CURRENCY_FROM}}_{{CURRENCY_TO}}&compact=ultra ' ;
15
+ const CURRENCY_CONVERTER_URL = 'http://free.currencyconverterapi.com/api/v3/convert?q={{CURRENCY_FROM}}_{{CURRENCY_TO}}&compact=ultra ' ; //@codingStandardsIgnoreLine
10
16
11
17
/**
12
18
* Http Client Factory
13
19
*
14
20
* @var \Magento\Framework\HTTP\ZendClientFactory
15
21
*/
16
- protected $ httpClientFactory ;
22
+ private $ httpClientFactory ;
17
23
18
24
/**
19
25
* Core scope config
@@ -68,7 +74,7 @@ public function fetchRates()
68
74
*/
69
75
private function convertBatch ($ data , $ currencyFrom , $ currenciesTo )
70
76
{
71
- foreach ($ currenciesTo as $ to ) {
77
+ foreach ($ currenciesTo as $ to ) {
72
78
set_time_limit (0 );
73
79
try {
74
80
$ url = str_replace ('{{CURRENCY_FROM}} ' , $ currencyFrom , self ::CURRENCY_CONVERTER_URL );
You can’t perform that action at this time.
0 commit comments