Completed
Push — 16.x ( 05e4c9...b7ef89 )
by Tim
07:28
created
src/Listeners/SortCategoryListener.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,10 +76,9 @@
 block discarded – undo
76 76
             $categories = array_shift($artefacts[CopyCategoryObserver::ARTEFACT_TYPE]);
77 77
 
78 78
             // sort them by the path + store_view_code
79
-            usort($categories, function ($a, $b) {
79
+            usort($categories, function($a, $b) {
80 80
                 return
81
-                    strcmp($a[ColumnKeys::PATH], $b[ColumnKeys::PATH]) ?:
82
-                    strcmp($a[ColumnKeys::STORE_VIEW_CODE], $b[ColumnKeys::STORE_VIEW_CODE]);
81
+                    strcmp($a[ColumnKeys::PATH], $b[ColumnKeys::PATH]) ?: strcmp($a[ColumnKeys::STORE_VIEW_CODE], $b[ColumnKeys::STORE_VIEW_CODE]);
83 82
             });
84 83
 
85 84
             // replace the artefacts to be exported later
Please login to merge, or discard this patch.