This pull request includes changes to the Api/Data/SubscriptionInterface.php, Block/Adminhtml/Subscription/Edit/AbstractButton.php, Block/Order/Payments.php, Block/Redirect/Paytrail.php, Block/System/Config/Form/Field/Version.php, Controller/Adminhtml/Profile/Delete.php, Controller/Adminhtml/Profile/Edit.php, and Controller/Adminhtml/Profile/Index.php files. The changes mostly involve code refactoring and improving the code structure.
This pull request includes changes to the
Api/Data/SubscriptionInterface.php
,Block/Adminhtml/Subscription/Edit/AbstractButton.php
,Block/Order/Payments.php
,Block/Redirect/Paytrail.php
,Block/System/Config/Form/Field/Version.php
,Controller/Adminhtml/Profile/Delete.php
,Controller/Adminhtml/Profile/Edit.php
, andController/Adminhtml/Profile/Index.php
files. The changes mostly involve code refactoring and improving the code structure.Code Refactoring:
Api/Data/SubscriptionInterface.php
: Added an extra line of comment to several methods to improve code readability. [1] [2] [3] [4] [5] [6] [7] [8]Block/Adminhtml/Subscription/Edit/AbstractButton.php
: Changed the visibility of some properties from protected to private and simplified the constructor. [1] [2] [3]Block/Order/Payments.php
: Modified several methods to use more specific parameter types and return types. [1] [2] [3] [4] [5] [6]Block/Redirect/Paytrail.php
: Changed the visibility of some properties and methods from protected to private and simplified the constructor. [1] [2]Block/System/Config/Form/Field/Version.php
: Fixed a potential issue where the current version might not be defined. [1] [2]Controller/Adminhtml/Profile/Delete.php
: Refactored the class to use property promotion and removed the inheritance fromMagento\Backend\App\Action
.Controller/Adminhtml/Profile/Edit.php
: Refactored the class to use property promotion and removed the inheritance fromMagento\Backend\App\Action
.Controller/Adminhtml/Profile/Index.php
: Refactored the class to use property promotion and removed the inheritance fromMagento\Backend\App\Action
. [1] [2]