$rows[] =
[sprintf('<fg=green;options=bold>%s</>', '\\' === \DIRECTORY_SEPARATOR ? 'OK' : "\xE2\x9C\x94" /* HEAVY CHECK MARK (U+2714) */
),
$message,
$method];
} else { $rows[] =
[sprintf('<fg=yellow;options=bold>%s</>', '\\' === \DIRECTORY_SEPARATOR ? 'WARNING' : '!'
),
$message,
$method];
} } catch (\Exception
$e) { $exitCode = 1;
$rows[] =
[sprintf('<fg=red;options=bold>%s</>', '\\' === \DIRECTORY_SEPARATOR ? 'ERROR' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */
),
$message,
$e->
getMessage()];
} } // remove the assets of the bundles that no longer exist
if (!
$input->
getOption('no-cleanup'
) &&
is_dir($bundlesDir)) { $dirsToRemove = Finder::
create()->
depth(0
)->
directories()->
exclude($validAssetDirs)->
in($bundlesDir);
$this->filesystem->
remove($dirsToRemove);
} if ($rows) { $io->
table(['', 'Bundle', 'Method / Error'
],
$rows);
} if (0 !==
$exitCode) { $io->
error('Some errors occurred while installing assets.'
);
} else { if ($copyUsed) {