Skip to content

Commit fcc5421

Browse files
committed
fix(payment): resolve PHPStan and PHP CS fixer errors
1 parent d961130 commit fcc5421

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.phpstan.dist.baseline.neon

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,14 +2197,14 @@ parameters:
21972197
path: app/code/core/Mage/Payment/Model/Recurring/Profile.php
21982198

21992199
-
2200-
rawMessage: Dead catch - Mage_Core_Exception is never thrown in the try block.
2201-
identifier: catch.neverThrown
2200+
rawMessage: 'Method Mage_Payment_Model_Recurring_Profile::exportStartDatetime() should return string|Zend_Date but empty return statement found.'
2201+
identifier: return.empty
22022202
count: 1
22032203
path: app/code/core/Mage/Payment/Model/Recurring/Profile.php
22042204

22052205
-
2206-
rawMessage: 'Method Mage_Payment_Model_Recurring_Profile::exportStartDatetime() should return string|Zend_Date but empty return statement found.'
2207-
identifier: return.empty
2206+
rawMessage: 'Parameter #1 $message of static method Mage::throwException() expects string, array given.'
2207+
identifier: argument.type
22082208
count: 1
22092209
path: app/code/core/Mage/Payment/Model/Recurring/Profile.php
22102210

@@ -3316,4 +3316,4 @@ parameters:
33163316
rawMessage: 'Parameter #1 $filename of method Varien_Simplexml_Element::asNiceXml() expects string, int given.'
33173317
identifier: argument.type
33183318
count: 1
3319-
path: lib/Varien/Simplexml/Element.php
3319+
path: lib/Varien/Simplexml/Element.php

app/code/core/Mage/Sales/Model/Order.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* @method Mage_Sales_Model_Resource_Order _getResource()
2323
* @method float getAdjustmentNegative()
2424
* @method float getAdjustmentPositive()
25-
* @method null|string getAppliedRuleIds()
2625
*
26+
* @method null|string getAppliedRuleIds()
2727
* @method array getAppliedTaxes()
2828
* @method bool getAppliedTaxIsSaved()
2929
* @method string getBackUrl()
@@ -121,7 +121,6 @@
121121
* @method string getOriginalIncrementId()
122122
* @method float getPaymentAuthorizationAmount()
123123
* @method int getPaymentAuthorizationExpiration()
124-
* @method $this setPaymentAuthorizationExpiration(int $value)
125124
* @method string getProtectCode()
126125
* @method float getQuantity()
127126
* @method Mage_Sales_Model_Quote getQuote()

0 commit comments

Comments
 (0)