Skip to content
Snippets Groups Projects
Commit b3ffc51e authored by Alex Pott's avatar Alex Pott Committed by Conrad Lara
Browse files

Applied suggestion to use file_exists()

parent 2a8fea98
No related merge requests found
Pipeline #106613 failed
......@@ -347,7 +347,7 @@ protected function cleanPathsForPackage(PackageInterface $package, $paths_for_pa
$fs = new Filesystem();
foreach ($paths_for_package as $cleanup_item) {
$cleanup_path = $package_dir . '/' . $cleanup_item;
if (!is_dir($cleanup_path) && !is_file($cleanup_path)) {
if (!file_exists($cleanup_path)) {
// If the package has changed or the --prefer-dist version does not
// include the directory. This is not an error.
$this->io->writeError(sprintf("%s<comment>Path '%s' does not exist.</comment>", str_repeat(' ', 6), $cleanup_path), TRUE, IOInterface::VERY_VERBOSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment