protected function getModuleName(PackageInterface $package)
    {
        $extra = $package->getExtra();

        if (isset($extra['modulename'])) {
            $name = $extra['modulename'];
        } else {
            $name = strtr($package->getPrettyName(), array(
                '\\' => '.',
                '-' => '.',
                '_' => '.',
                ' ' => ''
            ));
        }

        return $name;
    }
protected function getModuleName(PackageInterface $package)
    {
        $extra = $package->getExtra();

        if (isset($extra['modulename'])) {
            $name = $extra['modulename'];
        } else {
            $name = strtr($package->getPrettyName(), array(
                '\\' => '.',
                '-' => '.',
                '_' => '.',
                ' ' => ''
            ));
        }

        return $name;
    }
protected function getModuleName ( PackageInterface $ package ) { $ extra = $ package -> getExtra ( ) ; if ( isset ( $ extra [ 'modulename' ] ) ) { $ name = $ extra [ 'modulename' ] ; } else { $ name = strtr ( $ package -> getPrettyName ( ) , array ( '\\' => '.' , '-' => '.' , '_' => '.' , ' ' => '' ) ) ; } return $ name ; }
Get the module name

@param PackageInterface $package
@return string
Get the module name