Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
// Docblocks should have the same indentation as the documented subject.
'phpdoc_indent' => true,
// Annotations in PHPDoc should be ordered in defined sequence.
'phpdoc_order' => true,
// Orders all @param annotations in DocBlocks according to method signature.
'phpdoc_param_order' => true,
// PHPDoc should start and end with content, excluding the very first and last line of the docblocks.
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Admin/Model/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ protected function _construct()
}

/**
* @return array|true
* @throws Exception
* @throws Zend_Validate_Exception
* @return array|true
*/
public function validate()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Admin/Model/Resource/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ protected function _afterLoad(Mage_Core_Model_Abstract $user)
/**
* Delete user role record with user
*
* @return $this
* @throws Exception
* @return $this
*/
public function delete(Mage_Core_Model_Abstract $user)
{
Expand Down
12 changes: 6 additions & 6 deletions app/code/core/Mage/Admin/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public function saveExtra($data)
/**
* Save user roles
*
* @return $this
* @throws Mage_Core_Exception
* @return $this
*/
public function saveRelations()
{
Expand Down Expand Up @@ -367,8 +367,8 @@ public function getAclRole()
*
* @param string $username
* @param string $password
* @return bool
* @throws Mage_Core_Exception
* @return bool
*/
public function authenticate($username, $password)
{
Expand Down Expand Up @@ -426,8 +426,8 @@ public function validatePasswordHash(string $string1, string $string2): bool
*
* @param string $username
* @param string $password
* @return $this
* @throws Mage_Core_Exception
* @return $this
*/
public function login($username, $password)
{
Expand Down Expand Up @@ -584,8 +584,8 @@ public function getStartupPageUrl()
* Validate user attribute values.
* Returns TRUE or array of errors.
*
* @return array|true
* @throws Zend_Validate_Exception
* @return array|true
*/
public function validate()
{
Expand Down Expand Up @@ -651,8 +651,8 @@ public function validate()
* Returns true or array of errors.
*
* @param string $password
* @return array|true
* @throws Zend_Validate_Exception
* @return array|true
*/
public function validateCurrentPassword($password)
{
Expand All @@ -677,8 +677,8 @@ public function validateCurrentPassword($password)
* Stores new reset password link token and its creation time
*
* @param string $newResetPasswordLinkToken
* @return $this
* @throws Mage_Core_Exception
* @return $this
*/
public function changeResetPasswordLinkToken($newResetPasswordLinkToken)
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Admin/Model/Variable.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ protected function _construct()
}

/**
* @return array|bool
* @throws Exception
* @throws Zend_Validate_Exception
* @return array|bool
*/
public function validate()
{
Expand Down
6 changes: 3 additions & 3 deletions app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function __construct()

/**
* @param Mage_Adminhtml_Block_Widget_Grid_Column $column
* @return $this
* @throws Exception
* @return $this
*/
protected function _addColumnFilterToCollection($column)
{
Expand Down Expand Up @@ -123,8 +123,8 @@ protected function _prepareColumns()
}

/**
* @return string
* @throws Exception
* @return string
*/
public function getGridUrl()
{
Expand All @@ -134,8 +134,8 @@ public function getGridUrl()

/**
* @param bool $json
* @return array|int|string
* @throws Exception
* @return array|int|string
*/
protected function _getUsers($json = false)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public function getGridUrl()

/**
* @param bool $json
* @return string
* @throws Exception
* @return string
*/
protected function _getSelectedRoles($json = false)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ protected function _prepareLayout()
}

/**
* @return string
* @throws Mage_Core_Model_Store_Exception
* @return string
*/
public function getStoreConfigurationUrl()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public function getGridUrl()
}

/**
* @return array
* @throws Exception
* @return array
*/
protected function _getSelectedProducts()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public function __construct()
}

/**
* @return $this
* @throws Exception
* @return $this
*/
protected function _prepareLayout()
{
Expand All @@ -47,8 +47,8 @@ protected function _prepareLayout()
}

/**
* @return array
* @throws Exception
* @return array
*/
protected function _getGroupAttributes()
{
Expand All @@ -74,8 +74,8 @@ public function getCloseButtonHtml()
}

/**
* @return string
* @throws Exception
* @return string
*/
public function getAttributesBlockJson()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ protected function _prepareCollection()
}

/**
* @return $this
* @throws Exception
* @return $this
*/
protected function _prepareColumns()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ protected function _construct()
/**
* Retrieve product
*
* @return Mage_Catalog_Model_Product
* @throws Mage_Core_Model_Store_Exception
* @return Mage_Catalog_Model_Product
*/
public function getProduct()
{
Expand All @@ -54,8 +54,8 @@ public function getProduct()
/**
* Retrieve array of associated products
*
* @return array
* @throws Mage_Core_Model_Store_Exception
* @return array
*/
public function getAssociatedProducts()
{
Expand All @@ -75,8 +75,8 @@ public function getAssociatedProducts()
/**
* Set preconfigured values to grouped associated products
*
* @return Mage_Catalog_Block_Product_View_Type_Grouped
* @throws Mage_Core_Model_Store_Exception
* @return Mage_Catalog_Block_Product_View_Type_Grouped
*/
public function setPreconfiguredValue()
{
Expand Down Expand Up @@ -107,8 +107,8 @@ public function getCanShowProductPrice($product)
/**
* Checks whether block is last fieldset in popup
*
* @return bool
* @throws Mage_Core_Model_Store_Exception
* @return bool
*/
public function getIsLastFieldset()
{
Expand All @@ -125,8 +125,8 @@ public function getIsLastFieldset()
* Returns price converted to current currency rate
*
* @param float $price
* @return float
* @throws Mage_Core_Model_Store_Exception
* @return float
*/
public function getCurrencyPrice($price)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ public function getIsConfigured()
}

/**
* @return string
* @throws Exception
* @return string
*/
public function getSelectedTabId()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ protected function _getProduct()

/**
* @param Mage_Adminhtml_Block_Widget_Grid_Column $column
* @return $this
* @throws Exception
* @return $this
*/
protected function _addColumnFilterToCollection($column)
{
Expand Down Expand Up @@ -84,8 +84,8 @@ protected function _addColumnFilterToCollection($column)
}

/**
* @return array
* @throws Exception
* @return array
*/
protected function _getCreatedProducts()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config_Simple extends
protected $_product = null;

/**
* @return $this
* @throws Mage_Core_Exception
* @return $this
*/
protected function _prepareForm()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public function __construct($attributes = [])
}

/**
* @return string
* @throws Mage_Core_Model_Store_Exception
* @return string
*/
public function getAfterElementHtml()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class Mage_Adminhtml_Block_Customer_Edit_Tab_Account extends Mage_Adminhtml_Bloc
/**
* Initialize form
*
* @return $this
* @throws Mage_Core_Exception
* @return $this
*/
public function initForm()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public function getDeleteButtonHtml()
/**
* Initialize form object
*
* @return $this
* @throws Mage_Core_Exception
* @return $this
*/
public function initForm()
{
Expand Down Expand Up @@ -246,8 +246,8 @@ protected function _getAdditionalElementTypes()
/**
* Return JSON object with countries associated to possible websites
*
* @return string
* @throws Mage_Core_Exception
* @return string
*/
public function getDefaultCountriesJson()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ public function getGridUrl()
}

/**
* @return string
* @throws Exception
* @return string
*/
public function getGridParentHtml()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function __construct()
}

/**
* @return Mage_Adminhtml_Block_Widget_Tabs
* @throws Exception
* @return Mage_Adminhtml_Block_Widget_Tabs
*/
protected function _beforeToHtml()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function __construct()
}

/**
* @return string
* @throws Exception
* @return string
*/
public function getDeleteUrl()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public function setCurrency($currency)
/**
* Retrieve currency model if not set then return currency model for current store
*
* @return Mage_Directory_Model_Currency
* @throws Mage_Core_Model_Store_Exception
* @throws Mage_Core_Exception
* @return Mage_Directory_Model_Currency
*/
public function getCurrency()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ protected function getHeight()
/**
* Prepare chart data
*
* @return void
* @throws Exception
* @return void
*/
protected function _prepareData()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Dashboard/Grids.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public function __construct()
* 2) specify url (BE CAREFUL)
* 3) specify class 'ajax'
*
* @return $this
* @throws Exception
* @return $this
*/
protected function _prepareLayout()
{
Expand Down
Loading
Loading