Skip to content

Commit 418e9ff

Browse files
tmotylcolinmollenhour
authored andcommitted
Fix wrong types in doc comments part 2 (#633)
1 parent 8d1d8e4 commit 418e9ff

File tree

38 files changed

+67
-70
lines changed

38 files changed

+67
-70
lines changed

app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Adjustments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class Mage_Adminhtml_Block_Sales_Order_Creditmemo_Create_Adjustments extends Mag
2727
{
2828
protected $_source;
2929
/**
30-
* Initialize creditmemo agjustment totals
30+
* Initialize creditmemo adjustment totals
3131
*
32-
* @return Mage_Tax_Block_Sales_Order_Tax
32+
* @return $this
3333
*/
3434
public function initTotals()
3535
{

app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Tax.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ protected function _getTaxHelper()
6464
/**
6565
* Display tax amount
6666
*
67+
* @param float $amount
68+
* @param float $baseAmount
6769
* @return string
6870
*/
6971
public function displayAmount($amount, $baseAmount)

app/code/core/Mage/Adminhtml/Model/Giftmessage/Save.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ public function isGiftMessagesAvailable($item)
244244
/**
245245
* Imports quote items for gift messages from products data
246246
*
247-
* @param unknown_type $products
248-
* @return unknown
247+
* @param array $products
248+
* @return $this
249249
*/
250250
public function importAllowQuoteItemsFromProducts($products)
251251
{

app/code/core/Mage/Adminhtml/Model/System/Store.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct()
7878
/**
7979
* Load/Reload Website collection
8080
*
81-
* @return array
81+
* @return $this
8282
*/
8383
protected function _loadWebsiteCollection()
8484
{
@@ -89,7 +89,7 @@ protected function _loadWebsiteCollection()
8989
/**
9090
* Load/Reload Group collection
9191
*
92-
* @return array
92+
* @return $this
9393
*/
9494
protected function _loadGroupCollection()
9595
{
@@ -105,7 +105,7 @@ protected function _loadGroupCollection()
105105
/**
106106
* Load/Reload Store collection
107107
*
108-
* @return array
108+
* @return $this
109109
*/
110110
protected function _loadStoreCollection()
111111
{

app/code/core/Mage/Bundle/Model/Price/Index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
/**
2929
* Bundle Product Price Index
3030
*
31-
* @method Mage_Bundle_Model_Resource_Price_Index _getResource()
3231
* @method Mage_Bundle_Model_Resource_Price_Index getResource()
3332
* @method Mage_Bundle_Model_Price_Index setEntityId(int $value)
3433
* @method int getWebsiteId()

app/code/core/Mage/Catalog/Block/Seo/Sitemap/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Mage_Catalog_Block_Seo_Sitemap_Product extends Mage_Catalog_Block_Seo_Site
3737
/**
3838
* Initialize products collection
3939
*
40-
* @return Mage_Catalog_Block_Seo_Sitemap_Category
40+
* @return $this
4141
*/
4242
protected function _prepareLayout()
4343
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ public function isValidData(array $data)
130130
*
131131
* @param array $data
132132
* @param Mage_Eav_Model_Entity_Type $productEntity
133-
* @return array
134133
*/
135134
protected function _validateAttributes($data, $productEntity)
136135
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ public function getParentCategories()
831831
}
832832

833833
/**
834-
* Retuen children categories of current category
834+
* Return children categories of current category
835835
*
836836
* @return array
837837
*/

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
/**
2929
* Product status functionality model
3030
*
31-
* @method Mage_Catalog_Model_Resource_Product_Status _getResource()
3231
* @method Mage_Catalog_Model_Resource_Product_Status getResource()
3332
* @method int getProductId()
3433
* @method Mage_Catalog_Model_Product_Status setProductId(int $value)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ public function getStoreFilter($product = null)
843843
* Set store filter for associated products
844844
*
845845
* @param $store int|Mage_Core_Model_Store
846-
* @return Mage_Catalog_Model_Product_Type_Configurable
846+
* @return $this
847847
*/
848848
public function setStoreFilter($store=null, $product = null)
849849
{
@@ -853,7 +853,7 @@ public function setStoreFilter($store=null, $product = null)
853853
}
854854

855855
/**
856-
* Allow for updates of chidren qty's
856+
* Allow for updates of children qty's
857857
* (applicable for complicated product types. As default returns false)
858858
*
859859
* @return boolean false

0 commit comments

Comments
 (0)