Skip to content

Commit

Permalink
Small DocBlock update (#4160)
Browse files Browse the repository at this point in the history
* Rector: CQ - UnusedForeachValueToArrayKeysRector (#1)

* Rector: CQ - UnusedForeachValueToArrayKeysRector

See Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector

* fixes + phpstan

See fix at rector: rectorphp/rector-src#6164

* Revert "Rector: CQ - UnusedForeachValueToArrayKeysRector (#1)"

This reverts commit 3d7eaf6.

* DocBlock update

* Update app/code/core/Mage/Adminhtml/Helper/Help/Mapping.php

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

* Update app/code/core/Mage/Core/Model/Session/Abstract.php

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

* Update app/code/core/Mage/Core/Model/Session/Abstract.php

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

---------

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
  • Loading branch information
sreichel and kiatng committed Sep 2, 2024
1 parent 2b368b2 commit 220399d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Helper/Help/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ protected function findInMapping($frontModule, $controllerName, $actionName)
/**
* Determine which version of docs should target onto
*
* @return string
* @return Mage_Core_Model_Config_Element|Varien_Simplexml_Element|false
*/
protected function getHelpTargetVersion()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function _hasAttributeOptionsAndSearchable($attribute)
* Retrieve SQL for search entities
*
* @param string $query
* @return string
* @return Varien_Db_Select
*/
protected function _getSearchEntityIdsSql($query)
{
Expand Down Expand Up @@ -168,7 +168,7 @@ protected function _getSearchEntityIdsSql($query)
* Retrieve SQL for search entities by option
*
* @param string $query
* @return false|string
* @return false|Varien_Db_Select
*/
protected function _getSearchInOptionSql($query)
{
Expand Down
4 changes: 2 additions & 2 deletions app/code/core/Mage/Core/Model/Session/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ public function getSessionHosts()
/**
* Retrieve session save method
*
* @return string
* @return Mage_Core_Model_Config_Element|Varien_Simplexml_Element|false|string
*/
public function getSessionSaveMethod()
{
Expand All @@ -537,7 +537,7 @@ public function getSessionSaveMethod()
/**
* Get session save path
*
* @return string
* @return Mage_Core_Model_Config_Element|Varien_Simplexml_Element|false|string
*/
public function getSessionSavePath()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function showStoreInfo()
* @deprecated after 1.4.0.0-rc1
*
* @param string $field
* @return string
* @return string|Zend_Db_Expr
*/
public function _getFieldTableAlias($field)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Mage_Sales_Model_Resource_Report_Invoiced_Collection_Order extends Mage_Sa
/**
* Period format
*
* @var string
* @var Zend_Db_Expr
*/
protected $_periodFormat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Mage_Sales_Model_Resource_Report_Order_Collection extends Mage_Sales_Model
/**
* Period format
*
* @var string
* @var Zend_Db_Expr
*/
protected $_periodFormat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Mage_Sales_Model_Resource_Report_Refunded_Collection_Order extends Mage_Sa
/**
* Period format
*
* @var string
* @var Zend_Db_Expr
*/
protected $_periodFormat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Mage_Sales_Model_Resource_Report_Shipping_Collection_Order extends Mage_Sa
/**
* Period format
*
* @var string
* @var Zend_Db_Expr
*/
protected $_periodFormat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Mage_SalesRule_Model_Resource_Report_Collection extends Mage_Sales_Model_R
/**
* Period format for report (day, month, year)
*
* @var string
* @var Zend_Db_Expr
*/
protected $_periodFormat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class Mage_Tax_Model_Resource_Report_Collection extends Mage_Sales_Model_Resource_Report_Collection_Abstract
{
/**
* @var string
* @var Zend_Db_Expr
*/
protected $_periodFormat;

Expand Down
6 changes: 3 additions & 3 deletions lib/Varien/Db/Adapter/Pdo/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function getTransactionLevel()
* Convert date to DB format
*
* @param int|string|Zend_Date $date
* @return string
* @return Zend_Db_Expr
*/
public function convertDate($date)
{
Expand All @@ -288,11 +288,11 @@ public function convertDate($date)
* Convert date and time to DB format
*
* @param int|string|Zend_Date $datetime
* @return string
* @return Zend_Db_Expr
*/
public function convertDateTime($datetime)
{
return $this->formatDate($datetime, true);
return $this->formatDate($datetime);
}

/**
Expand Down

0 comments on commit 220399d

Please sign in to comment.