Skip to content

Commit 5af5f43

Browse files
authored
1 parent 0ee5b5c commit 5af5f43

File tree

26 files changed

+41
-39
lines changed

26 files changed

+41
-39
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
'phpdoc_trim' => true,
3131
// Removes extra blank lines after summary and after description in PHPDoc.
3232
'phpdoc_trim_consecutive_blank_line_separation' => true,
33+
// Scalar types should always be written in the same form. int not integer, bool not boolean, float not real or double.
34+
'phpdoc_scalar' => true,
3335
// Single line @var PHPDoc should have proper spacing.
3436
'phpdoc_single_line_var_spacing' => true,
3537
// Fixes casing of PHPDoc tags.

app/Mage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public static function getConfig()
493493
* Add observer to events object
494494
*
495495
* @param string $eventName
496-
* @param callback $callback
496+
* @param callable $callback
497497
* @param array $data
498498
* @param string $observerName
499499
* @param string $observerClass
@@ -1035,7 +1035,7 @@ public static function printException(Throwable $e, $extra = '')
10351035
* Try to find requested folder by shifting to domain root directory
10361036
*
10371037
* @param string $folder
1038-
* @param boolean $exitIfNot
1038+
* @param bool $exitIfNot
10391039
* @return string
10401040
*/
10411041
public static function getScriptSystemUrl($folder, $exitIfNot = false)

app/code/core/Mage/Adminhtml/Block/Report/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public function getCurrentCurrencyCode()
655655
* Get currency rate (base to given currency)
656656
*
657657
* @param Mage_Directory_Model_Currency|string $toCurrency
658-
* @return double
658+
* @return float
659659
*/
660660
public function getRate($toCurrency)
661661
{

app/code/core/Mage/Adminhtml/Block/Report/Grid/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public function getCurrentCurrencyCode()
294294
* Get currency rate (base to given currency)
295295
*
296296
* @param Mage_Directory_Model_Currency|string $toCurrency
297-
* @return double
297+
* @return float
298298
*/
299299
public function getRate($toCurrency)
300300
{

app/code/core/Mage/Adminhtml/Block/Report/Grid/Shopcart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getCurrentCurrencyCode()
5757
* Get currency rate (base to given currency)
5858
*
5959
* @param Mage_Directory_Model_Currency|string $toCurrency
60-
* @return double
60+
* @return float
6161
*/
6262
public function getRate($toCurrency)
6363
{

app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/Grid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function getOriginalEditablePrice($item)
108108
* Returns the item's original price
109109
*
110110
* @param Mage_Sales_Model_Quote_Item $item
111-
* @return double
111+
* @return float
112112
*/
113113
public function getItemOrigPrice($item)
114114
{
@@ -364,7 +364,7 @@ public function displaySubtotalInclTax($item)
364364
* Returns the item's original price that includes tax
365365
*
366366
* @param Mage_Sales_Model_Quote_Item $item
367-
* @return double
367+
* @return float
368368
*/
369369
public function displayOriginalPriceInclTax($item)
370370
{

app/code/core/Mage/Catalog/Model/Product.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ public function getTierPriceCount()
921921
/**
922922
* Get formatted by currency tier price
923923
*
924-
* @param double $qty
925-
* @return array|double
924+
* @param float $qty
925+
* @return array|float
926926
*/
927927
public function getFormatedTierPrice($qty = null)
928928
{
@@ -932,7 +932,7 @@ public function getFormatedTierPrice($qty = null)
932932
/**
933933
* Get formatted by currency product price
934934
*
935-
* @return array|double
935+
* @return array|float
936936
*/
937937
public function getFormatedPrice()
938938
{
@@ -958,8 +958,8 @@ public function setFinalPrice($price)
958958
/**
959959
* Get product final price
960960
*
961-
* @param double $qty
962-
* @return double
961+
* @param float $qty
962+
* @return float
963963
*/
964964
public function getFinalPrice($qty = null)
965965
{

app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Mage_Catalog_Model_Product_Type_Configurable_Price extends Mage_Catalog_Mo
1919
*
2020
* @param null|float $qty
2121
* @param Mage_Catalog_Model_Product $product
22-
* @return double
22+
* @return float
2323
*/
2424
public function getFinalPrice($qty, $product)
2525
{

app/code/core/Mage/Catalog/Model/Product/Type/Grouped/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Mage_Catalog_Model_Product_Type_Grouped_Price extends Mage_Catalog_Model_P
1919
*
2020
* @param null|float $qty
2121
* @param Mage_Catalog_Model_Product $product
22-
* @return double
22+
* @return float
2323
*/
2424
public function getFinalPrice($qty, $product)
2525
{

app/code/core/Mage/CatalogIndex/Model/Indexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ protected function _getPriorifiedProductTypes()
569569
* Retrieve Base to Specified Currency Rate
570570
*
571571
* @param string $code
572-
* @return double
572+
* @return float
573573
*/
574574
protected function _getBaseToSpecifiedCurrencyRate($code)
575575
{

0 commit comments

Comments
 (0)