Remove duplicated paths

This commit is contained in:
Diego Saint Esteben 2015-06-12 16:45:17 -03:00
parent 009efb8dec
commit 97de887222
1 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ class FileLocator implements FileLocatorInterface
array_unshift($paths, $currentPath);
}
$paths = array_unique($paths);
$filepaths = array();
foreach ($paths as $path) {
@ -68,7 +69,7 @@ class FileLocator implements FileLocatorInterface
throw new \InvalidArgumentException(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths)));
}
return array_values(array_unique($filepaths));
return $filepaths;
}
/**