Skip to content

Commit 72c544e

Browse files
committed
Search indexes: Fix missing search entries (review amends - if check order)
1 parent e5c35f8 commit 72c544e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

phpdotnet/phd/Package/PHP/Web.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ private function processJsonIndex(): array {
278278
$descriptions = [];
279279
foreach($this->indexes as $id => $index) {
280280
if (
281-
(! in_array($index['element'], $alwaysIncludeElements, true))
282-
&& (! $index['chunk'])
281+
(! $index['chunk'])
282+
&& (! in_array($index['element'], $alwaysIncludeElements, true))
283283
) {
284284
continue;
285285
}
@@ -316,8 +316,8 @@ private function processCombinedJsonIndex(): array
316316
$indexes = $this->indexRepository->getIndexesWithDuplicates();
317317
foreach ($indexes as $index) {
318318
if (
319-
(! in_array($index['element'], $alwaysIncludeElements, true))
320-
&& (! $index['chunk'])
319+
(! $index['chunk'])
320+
&& (! in_array($index['element'], $alwaysIncludeElements, true))
321321
) {
322322
continue;
323323
}

0 commit comments

Comments
 (0)