We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2bca6 commit 07402bbCopy full SHA for 07402bb
app/code/Magento/Payment/Helper/Data.php
@@ -151,15 +151,7 @@ public function getStoreMethods($store = null, $quote = null)
151
@uasort(
152
$res,
153
function (MethodInterface $a, MethodInterface $b) {
154
- if ((int)$a->getConfigData('sort_order') < (int)$b->getConfigData('sort_order')) {
155
- return -1;
156
- }
157
-
158
- if ((int)$a->getConfigData('sort_order') > (int)$b->getConfigData('sort_order')) {
159
- return 1;
160
161
162
- return 0;
+ return (int)$a->getConfigData('sort_order') <=> (int)$b->getConfigData('sort_order');
163
}
164
);
165
0 commit comments