File tree Expand file tree Collapse file tree 3 files changed +0
-71
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 3 files changed +0
-71
lines changed Original file line number Diff line number Diff line change 23
23
use Magento \Ui \Component \Form \Element \ActionDelete ;
24
24
use Magento \Ui \Component \Form \Element \DataType \Text ;
25
25
use Magento \Ui \Component \Form \Element \DataType \Number ;
26
- use Magento \Framework \Locale \CurrencyInterface ;
27
26
28
27
/**
29
28
* Data provider for "Customizable Options" panel
@@ -1176,26 +1175,4 @@ protected function getCurrencySymbol()
1176
1175
{
1177
1176
return $ this ->storeManager ->getStore ()->getBaseCurrency ()->getCurrencySymbol ();
1178
1177
}
1179
-
1180
- /**
1181
- * Format price
1182
- *
1183
- * @param mixed $value
1184
- * @return string
1185
- * @since 101.0.0
1186
- */
1187
- protected function formatPrice ($ value )
1188
- {
1189
- if (!is_numeric ($ value )) {
1190
- return null ;
1191
- }
1192
-
1193
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
1194
- $ roundValue = call_user_func ([\Zend_Locale_Math::class, 'round ' ], $ value , 2 );
1195
-
1196
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
1197
- $ value = call_user_func ([\Zend_Locale_Math::class, 'normalize ' ], $ roundValue );
1198
-
1199
- return $ value ;
1200
- }
1201
1178
}
Original file line number Diff line number Diff line change 27
27
use Magento \Framework \App \RequestInterface ;
28
28
use Magento \Framework \AuthorizationInterface ;
29
29
use Magento \Framework \Filter \Translit ;
30
- use Magento \Framework \Locale \CurrencyInterface ;
31
30
use Magento \Framework \Stdlib \ArrayManager ;
32
31
use Magento \Store \Model \StoreManagerInterface ;
33
32
use Magento \Ui \Component \Form \Element \Wysiwyg as WysiwygElement ;
@@ -1093,25 +1092,4 @@ private function calculateGroupCode(AttributeGroupInterface $group)
1093
1092
1094
1093
return $ attributeGroupCode ;
1095
1094
}
1096
-
1097
- /**
1098
- * Format price according to the locale of the currency
1099
- *
1100
- * @param mixed $value
1101
- * @return string
1102
- */
1103
- protected function formatPrice ($ value )
1104
- {
1105
- if (!is_numeric ($ value )) {
1106
- return null ;
1107
- }
1108
-
1109
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
1110
- $ roundValue = call_user_func ([\Zend_Locale_Math::class, 'round ' ], $ value , 2 );
1111
-
1112
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
1113
- $ value = call_user_func ([\Zend_Locale_Math::class, 'normalize ' ], $ roundValue );
1114
-
1115
- return $ value ;
1116
- }
1117
1095
}
Original file line number Diff line number Diff line change @@ -411,27 +411,6 @@ protected function customizeNameListeners(array $meta)
411
411
return $ this ->arrayManager ->merge ($ urkKeyPath . static ::META_CONFIG_PATH , $ meta , $ urlKeyConfig );
412
412
}
413
413
414
- /**
415
- * Format price
416
- *
417
- * @param mixed $value
418
- * @return string
419
- * @since 101.0.0
420
- */
421
- protected function formatPrice ($ value )
422
- {
423
- if (!is_numeric ($ value )) {
424
- return null ;
425
- }
426
-
427
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
428
- $ roundValue = call_user_func ([\Zend_Locale_Math::class, 'round ' ], $ value , 2 );
429
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
430
- $ value = call_user_func ([\Zend_Locale_Math::class, 'normalize ' ], $ roundValue );
431
-
432
- return $ value ;
433
- }
434
-
435
414
/**
436
415
* Format number according precision of input
437
416
*
@@ -446,11 +425,6 @@ protected function formatNumber($value)
446
425
}
447
426
448
427
$ value = (float )$ value ;
449
- $ precision = strlen (substr (strrchr ($ value , ". " ), 1 ));
450
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
451
- $ roundValue = call_user_func ([\Zend_Locale_Math::class, 'round ' ], $ value , $ precision );
452
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
453
- $ value = call_user_func ([\Zend_Locale_Math::class, 'normalize ' ], $ roundValue );
454
428
455
429
return $ value ;
456
430
}
You can’t perform that action at this time.
0 commit comments