"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Console/Command/HelpCommand.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

HelpCommand.php  (cakephp-4.0.1):HelpCommand.php  (cakephp-4.0.2)
skipping to change at line 144 skipping to change at line 144
/** /**
* Output relevant paths if defined * Output relevant paths if defined
* *
* @param \Cake\Console\ConsoleIo $io IO object. * @param \Cake\Console\ConsoleIo $io IO object.
* @return void * @return void
*/ */
protected function outputPaths(ConsoleIo $io): void protected function outputPaths(ConsoleIo $io): void
{ {
$paths = []; $paths = [];
if (Configure::check('App.dir')) { if (Configure::check('App.dir')) {
$appPath = rtrim(Configure::read('App.dir'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
// Extra space is to align output // Extra space is to align output
$paths['app'] = ' ' . Configure::read('App.dir'); $paths['app'] = ' ' . $appPath;
} }
if (defined('ROOT')) { if (defined('ROOT')) {
$paths['root'] = rtrim(ROOT, DIRECTORY_SEPARATOR); $paths['root'] = rtrim(ROOT, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARA TOR;
} }
if (defined('CORE_PATH')) { if (defined('CORE_PATH')) {
$paths['core'] = rtrim(CORE_PATH, DIRECTORY_SEPARATOR); $paths['core'] = rtrim(CORE_PATH, DIRECTORY_SEPARATOR) . DIRECTORY_S EPARATOR;
} }
if (!count($paths)) { if (!count($paths)) {
return; return;
} }
$io->out('<info>Current Paths:</info>', 2); $io->out('<info>Current Paths:</info>', 2);
foreach ($paths as $key => $value) { foreach ($paths as $key => $value) {
$io->out("* {$key}: {$value}"); $io->out("* {$key}: {$value}");
} }
$io->out(''); $io->out('');
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)