src/Composer/ScriptHandler.php
public static function listModules(Event $event)
    {
        $packageRepository = new PackageRepository();
        $packageRepository->injectComposer($event->getComposer());

        $modules = $packageRepository->findModules();
        $maximumPackageNameLength = static::calculateMaximumPackageNameLength($modules);

        foreach ($modules as $module) {
            $paddedName = str_pad($module->getName(), $maximumPackageNameLength + 1);
            echo $paddedName . ' ' . $module->getPrettyVersion() . PHP_EOL;
        }
    }
public static function listModules(Event $event)
    {
        $packageRepository = new PackageRepository();
        $packageRepository->injectComposer($event->getComposer());

        $modules = $packageRepository->findModules();
        $maximumPackageNameLength = static::calculateMaximumPackageNameLength($modules);

        foreach ($modules as $module) {
            $paddedName = str_pad($module->getName(), $maximumPackageNameLength + 1);
            echo $paddedName . ' ' . $module->getPrettyVersion() . PHP_EOL;
        }
    }
public static function listModules ( Event $ event ) { $ packageRepository = new PackageRepository ( ) ; $ packageRepository -> injectComposer ( $ event -> getComposer ( ) ) ; $ modules = $ packageRepository -> findModules ( ) ; $ maximumPackageNameLength = static :: calculateMaximumPackageNameLength ( $ modules ) ; foreach ( $ modules as $ module ) { $ paddedName = str_pad ( $ module -> getName ( ) , $ maximumPackageNameLength + 1 ) ; echo $ paddedName . ' ' . $ module -> getPrettyVersion ( ) . PHP_EOL ; } }
Echos the names and version numbers of all installed phpList modules.

@param Event $event

@return void
Echos the names and version numbers of all installed phpList modules .