protected function showModules(Collection $modules)
    {
        $table = [];
        $i     = 0;

        /** @var BaseModuleServiceProvider $module */
        foreach ($modules as $module) {
            $i++;

            $table[] = [
                'no'        => sprintf('%d.', $i),
                'name'      => $module->getManifest()->getName(),
                'kind'      => $module->getKind()->label(),
                'version'   => $module->getManifest()->getVersion(),
                'id'        => $module->getId(),
                'namespace' => $module->getNamespaceRoot()
            ];
        }

        $this->table($this->headers, $table);
    }
protected function showModules(Collection $modules)
    {
        $table = [];
        $i     = 0;

        /** @var BaseModuleServiceProvider $module */
        foreach ($modules as $module) {
            $i++;

            $table[] = [
                'no'        => sprintf('%d.', $i),
                'name'      => $module->getManifest()->getName(),
                'kind'      => $module->getKind()->label(),
                'version'   => $module->getManifest()->getVersion(),
                'id'        => $module->getId(),
                'namespace' => $module->getNamespaceRoot()
            ];
        }

        $this->table($this->headers, $table);
    }
protected function showModules ( Collection $ modules ) { $ table = [ ] ; $ i = 0 ; /** @var BaseModuleServiceProvider $module */ foreach ( $ modules as $ module ) { $ i ++ ; $ table [ ] = [ 'no' => sprintf ( '%d.' , $ i ) , 'name' => $ module -> getManifest ( ) -> getName ( ) , 'kind' => $ module -> getKind ( ) -> label ( ) , 'version' => $ module -> getManifest ( ) -> getVersion ( ) , 'id' => $ module -> getId ( ) , 'namespace' => $ module -> getNamespaceRoot ( ) ] ; } $ this -> table ( $ this -> headers , $ table ) ; }
Displays the list of modules on the output

@param $modules Collection
Displays the list of modules on the output