Skip to content

Commit 41a8f04

Browse files
committed
make run array_unique once after merge
1 parent b8bff1b commit 41a8f04

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Autoloader/FileLocator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ public function search(string $path, string $ext = 'php', bool $prioritizeApp =
262262
}
263263
}
264264

265-
// Remove any duplicates
266-
$foundPaths = array_unique($foundPaths);
267-
268265
if (! $prioritizeApp && ! empty($appPaths))
269266
{
270-
$foundPaths = array_merge($foundPaths, array_unique($appPaths));
267+
$foundPaths = array_merge($foundPaths, $appPaths);
271268
}
272269

270+
// Remove any duplicates
271+
$foundPaths = array_unique($foundPaths);
272+
273273
return $foundPaths;
274274
}
275275

0 commit comments

Comments
 (0)