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 6c07952 commit 3b08bdbCopy full SHA for 3b08bdb
src/PHPFormatter/Sorter/UseSorter.php
@@ -235,6 +235,17 @@ public function sort($data)
235
continue;
236
}
237
238
+ if (is_int($groupKey)) {
239
+ $subGroupSorted = array();
240
+ foreach ($group as $subGroupKey => $subGroup) {
241
+ $subGroupSorted = array_merge($subGroupSorted, $this->sortGroup($subGroup));
242
+ }
243
+
244
+ $groups[$groupKey] = $subGroupSorted;
245
+ } else {
246
+ $groups[$groupKey] = $this->sortGroup($group);
247
248
249
$groups[$groupKey] = $this->sortGroup($group);
250
251
0 commit comments