Skip to content

Commit f8022f8

Browse files
sivaschenkonovikor
authored andcommitted
#19584: Fixed static tests
1 parent 1cb2f22 commit f8022f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/code/Magento/Catalog/Pricing/Render/PriceBox.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Catalog\Pricing\Render;
79

810
use Magento\Catalog\Model\Product;
@@ -69,7 +71,7 @@ public function jsonEncode($valueToEncode)
6971
/**
7072
* Get random string
7173
*
72-
* @param int $length
74+
* @param int $length
7375
* @param string|null $chars
7476
*
7577
* @return string
@@ -97,11 +99,12 @@ public function getCanDisplayQty(Product $product)
9799
}
98100

99101
/**
100-
* @param float $percent
102+
* Format percent
101103
*
104+
* @param float $percent
102105
* @return string
103106
*/
104-
public function formatPercent(float $percent):string
107+
public function formatPercent(float $percent): string
105108
{
106109
return rtrim(number_format($percent, 2), '.0');
107110
}

0 commit comments

Comments
 (0)