mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
make run array_unique once after merge
This commit is contained in:
parent
b8bff1b442
commit
41a8f04014
@ -262,14 +262,14 @@ class FileLocator
|
||||
}
|
||||
}
|
||||
|
||||
// Remove any duplicates
|
||||
$foundPaths = array_unique($foundPaths);
|
||||
|
||||
if (! $prioritizeApp && ! empty($appPaths))
|
||||
{
|
||||
$foundPaths = array_merge($foundPaths, array_unique($appPaths));
|
||||
$foundPaths = array_merge($foundPaths, $appPaths);
|
||||
}
|
||||
|
||||
// Remove any duplicates
|
||||
$foundPaths = array_unique($foundPaths);
|
||||
|
||||
return $foundPaths;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user