original_string: protected function getModuleName(PackageInterface $package)
      {
          $extra = $package->getExtra();
  
          if (isset($extra['modulename'])) {
              $name = $extra['modulename'];
          } else {
              $name = strtr($package->getPrettyName(), array(
                  '\\' => '.',
                  '-' => '.',
                  '_' => '.',
                  ' ' => ''
              ));
          }
  
          return $name;
      }
code: protected function getModuleName(PackageInterface $package)
      {
          $extra = $package->getExtra();
  
          if (isset($extra['modulename'])) {
              $name = $extra['modulename'];
          } else {
              $name = strtr($package->getPrettyName(), array(
                  '\\' => '.',
                  '-' => '.',
                  '_' => '.',
                  ' ' => ''
              ));
          }
  
          return $name;
      }
code_tokens: protected function getModuleName ( PackageInterface $ package ) { $ extra = $ package -> getExtra ( ) ; if ( isset ( $ extra [ 'modulename' ] ) ) { $ name = $ extra [ 'modulename' ] ; } else { $ name = strtr ( $ package -> getPrettyName ( ) , array ( '\\' => '.' , '-' => '.' , '_' => '.' , ' ' => '' ) ) ; } return $ name ; }
docstring: Get the module name
  
  @param PackageInterface $package
  @return string
docstring_tokens: Get the module name