Skip to content

Commit 59b86ca

Browse files
committed
wip
1 parent 54c0e83 commit 59b86ca

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/Searcher.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,11 @@ protected function traverseNodes(FileSearchResults $results, array $nodes): void
280280
$traverser->traverse($nodes);
281281
}
282282

283-
protected function sortNodesByLineNumber(...$items)
283+
protected function sortNodesByLineNumber(...$items): array
284284
{
285285
$result = array_merge(...$items);
286286

287-
usort($result, function ($a, $b) {
288-
$aNode = $a;
289-
$bNode = $b;
290-
287+
usort($result, function ($aNode, $bNode) {
291288
if ($aNode->getAttribute('startLine') > $bNode->getAttribute('startLine')) {
292289
return 1;
293290
}

0 commit comments

Comments
 (0)