Skip to content

Commit

Permalink
magento#19584: Fixed static tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored and novikor committed May 18, 2019
1 parent 1cb2f22 commit f8022f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/code/Magento/Catalog/Pricing/Render/PriceBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Catalog\Pricing\Render;

use Magento\Catalog\Model\Product;
Expand Down Expand Up @@ -69,7 +71,7 @@ public function jsonEncode($valueToEncode)
/**
* Get random string
*
* @param int $length
* @param int $length
* @param string|null $chars
*
* @return string
Expand Down Expand Up @@ -97,11 +99,12 @@ public function getCanDisplayQty(Product $product)
}

/**
* @param float $percent
* Format percent
*
* @param float $percent
* @return string
*/
public function formatPercent(float $percent):string
public function formatPercent(float $percent): string
{
return rtrim(number_format($percent, 2), '.0');
}
Expand Down

0 comments on commit f8022f8

Please sign in to comment.