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 11<?php
2+ /**
3+ * Copyright © Magento, Inc. All rights reserved.
4+ * See COPYING.txt for license details.
5+ */
6+ declare (strict_types=1 );
7+
28namespace Magento \Directory \Model \Currency \Import ;
39
410class CurrencyConverterApi extends AbstractImport
511{
612 /**
713 * @var string
814 */
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
1016
1117 /**
1218 * Http Client Factory
1319 *
1420 * @var \Magento\Framework\HTTP\ZendClientFactory
1521 */
16- protected $ httpClientFactory ;
22+ private $ httpClientFactory ;
1723
1824 /**
1925 * Core scope config
@@ -68,7 +74,7 @@ public function fetchRates()
6874 */
6975 private function convertBatch ($ data , $ currencyFrom , $ currenciesTo )
7076 {
71- foreach ($ currenciesTo as $ to ) {
77+ foreach ($ currenciesTo as $ to ) {
7278 set_time_limit (0 );
7379 try {
7480 $ url = str_replace ('{{CURRENCY_FROM}} ' , $ currencyFrom , self ::CURRENCY_CONVERTER_URL );
You can’t perform that action at this time.
0 commit comments