File tree 1 file changed +6
-3
lines changed
app/code/Magento/Catalog/Pricing/Render 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Catalog \Pricing \Render ;
7
9
8
10
use Magento \Catalog \Model \Product ;
@@ -69,7 +71,7 @@ public function jsonEncode($valueToEncode)
69
71
/**
70
72
* Get random string
71
73
*
72
- * @param int $length
74
+ * @param int $length
73
75
* @param string|null $chars
74
76
*
75
77
* @return string
@@ -97,11 +99,12 @@ public function getCanDisplayQty(Product $product)
97
99
}
98
100
99
101
/**
100
- * @param float $ percent
102
+ * Format percent
101
103
*
104
+ * @param float $percent
102
105
* @return string
103
106
*/
104
- public function formatPercent (float $ percent ):string
107
+ public function formatPercent (float $ percent ): string
105
108
{
106
109
return rtrim (number_format ($ percent , 2 ), '.0 ' );
107
110
}
You can’t perform that action at this time.
0 commit comments