Skip to content

Commit 1cb837b

Browse files
authored
1 parent c971c10 commit 1cb837b

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
1919
// Docblocks should have the same indentation as the documented subject.
2020
'phpdoc_indent' => true,
21+
// Orders all @param annotations in DocBlocks according to method signature.
22+
'phpdoc_param_order' => true,
2123
// Convert double quotes to single quotes for simple strings.
2224
'single_quote' => true,
2325
// Arguments lists, array destructuring lists, arrays that are multi-line, match-lines and parameters lists must have a trailing comma.

app/code/core/Mage/Admin/Model/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ protected function _getRequestUri($request = null)
304304
* Login failed process
305305
*
306306
* @param Exception $e
307+
* @param Mage_Core_Controller_Request_Http|null $request
307308
* @param string $username
308309
* @param string $message
309-
* @param Mage_Core_Controller_Request_Http|null $request
310310
*/
311311
protected function _loginFailed($e, $request, $username, $message)
312312
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ protected function _saveOne($entityId, $giftmessage)
117117
/**
118118
* Delete a single gift message from entity
119119
*
120-
* @param Mage_GiftMessage_Model_Message|null $giftmessageModel
121120
* @param Varien_Object $entityModel
121+
* @param Mage_GiftMessage_Model_Message|null $giftmessageModel
122122
* @return $this
123123
* @throws Throwable
124124
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ protected function _isManageStockEnabled($stockData)
429429
/**
430430
* Validate Customer Group field
431431
*
432-
* @param string $fieldSet
433432
* @param array $data
433+
* @param string $fieldSet
434434
*/
435435
protected function _validateCustomerGroup($data, $fieldSet)
436436
{

app/code/core/Mage/Eav/Model/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ public function getEntityType($code, $field = null)
444444
* Entity_Type->getEntity() which itself requires this class and re-triggers loading.
445445
*
446446
* @param Mage_Eav_Model_Entity_Type $entityType
447-
* @param int $storeId
448447
* @param string $attributeCode
448+
* @param int $storeId
449449
* @return Mage_Eav_Model_Entity_Attribute_Abstract|false
450450
*/
451451
protected function _getDefaultAttributeIfExists($entityType, $attributeCode, $storeId)

lib/Mage/HTTP/Client/Socket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ public function doError($string)
477477

478478
/**
479479
* Convert headers hash to string
480-
* @param $delimiter
481480
* @param $append
481+
* @param $delimiter
482482
* @return string
483483
*/
484484
protected function headersToString($append = [])

lib/Varien/Db/Adapter/Mysqli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ public function dropKey($table, $key)
203203
* @param string $keyName
204204
* @param string $refTableName
205205
* @param string $refKeyName
206-
* @param string $onUpdate
207206
* @param string $onDelete
207+
* @param string $onUpdate
208208
*/
209209
public function addConstraint(
210210
$fkName,

lib/Varien/Db/Adapter/Pdo/Mysql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ public function query($sql, $bind = [])
528528
* with named binds.
529529
*
530530
* @param Zend_Db_Select|string $sql
531-
* @param-out string $sql
532531
* @param mixed $bind
532+
* @param-out string $sql
533533
* @return $this
534534
*/
535535
protected function _prepareQuery(&$sql, &$bind = [])
@@ -878,8 +878,8 @@ public function purgeOrphanRecords(
878878
* @param string $columnName main table field name
879879
* @param string $refTableName referred table name
880880
* @param string $refColumnName referred table field name
881-
* @param string $onUpdate on update statement
882881
* @param string $onDelete on delete statement
882+
* @param string $onUpdate on update statement
883883
* @param bool $purge
884884
* @return mixed
885885
*/

lib/Varien/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class Varien_Image
2929
/**
3030
* Constructor
3131
*
32-
* @param string $adapter Default value is GD2
3332
* @param string $fileName
33+
* @param string $adapter Default value is GD2
3434
* @return void
3535
*/
3636
public function __construct($fileName = null, $adapter = Varien_Image_Adapter::ADAPTER_GD2)

0 commit comments

Comments
 (0)