@@ -44,11 +44,10 @@ class ConsoleController extends AbstractActionController
44
44
const CMD_MODULE_DISABLE = 'module-disable ' ;
45
45
/**#@- */
46
46
47
- /**#@+
47
+ /**
48
48
* Help option for retrieving list of modules
49
49
*/
50
50
const HELP_LIST_OF_MODULES = 'module-list ' ;
51
- /**#@- */
52
51
53
52
/**
54
53
* Map of controller actions exposed in CLI
@@ -547,7 +546,7 @@ public function helpAction()
547
546
case UserConfig::KEY_TIMEZONE :
548
547
return $ this ->arrayToString ($ this ->options ->getTimezoneList ());
549
548
case self ::HELP_LIST_OF_MODULES :
550
- return $ this ->getModuleList ();
549
+ return $ this ->getModuleListMsg ();
551
550
default :
552
551
if (isset ($ usages [$ type ])) {
553
552
if ($ usages [$ type ]) {
@@ -633,7 +632,7 @@ private function arrayToString($input)
633
632
*
634
633
* @return string
635
634
*/
636
- private function getModuleList ()
635
+ private function getModuleListMsg ()
637
636
{
638
637
$ moduleList = $ this ->getObjectManager ()->create ('Magento\Framework\Module\ModuleList ' );
639
638
$ result = "\nList of enabled modules: \n" ;
@@ -648,7 +647,7 @@ private function getModuleList()
648
647
$ fullModuleList = $ this ->getObjectManager ()->create ('Magento\Framework\Module\FullModuleList ' );
649
648
$ result .= "\nList of disabled modules: \n" ;
650
649
$ disabledModuleList = array_diff ($ fullModuleList ->getNames (), $ enabledModuleList );
651
- foreach ($ disabledModuleList as $ moduleName ) {
650
+ foreach ($ disabledModuleList as $ moduleName ) {
652
651
$ result .= "$ moduleName \n" ;
653
652
}
654
653
if (count ($ disabledModuleList ) === 0 ) {
0 commit comments